[FIX] website: Edition with Firefox with CSS of external domains.
Firefox doesn't allow to access sheets cssRules In such a case, we just pass, these css rules will simply not be available for the edition of some inputs. Probably, when a real use case needing these external css rules will come, we will probably need to fetch these style sheets another way. opw-642752
This commit is contained in:
@@ -2185,7 +2185,11 @@ define(['summernote/summernote'], function () {
|
||||
}
|
||||
var sheets = document.styleSheets;
|
||||
for(var i = 0; i < sheets.length; i++) {
|
||||
var rules = sheets[i].rules || sheets[i].cssRules;
|
||||
try {
|
||||
var rules = sheets[i].rules || sheets[i].cssRules;
|
||||
} catch(e) {
|
||||
continue;
|
||||
}
|
||||
if (rules) {
|
||||
for(var r = 0; r < rules.length; r++) {
|
||||
var selectorText = rules[r].selectorText;
|
||||
|
||||
Reference in New Issue
Block a user