summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-02-07 14:55:37 +0100
committerChristophe Simonis <chs@odoo.com>2018-02-07 14:55:37 +0100
commit830327c66a96e6c170531b314833cf8ce92592eb (patch)
tree1d5e46a36844199d0c7085826d9759b58aa8f937 /addons/web_editor/static/src/js/transcoder.js
parent81003c82e0a539a424602701f1c918223b00f2b2 (diff)
parentaf8de1a3edadadabe459818d735646a5caf2b7ff (diff)
[MERGE] forward port branch saas-14 up to af8de1a3eda
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
-rw-r--r--addons/web_editor/static/src/js/transcoder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js
index 6b42e028b3a..265ca5ab3f0 100644
--- a/addons/web_editor/static/src/js/transcoder.js
+++ b/addons/web_editor/static/src/js/transcoder.js
@@ -9,7 +9,7 @@ var getMatchedCSSRules = function (a) {
var sheets = document.styleSheets;
for(var i = sheets.length-1; i >= 0 ; i--) {
var rules;
- if (sheets[i].rules) {
+ if (sheets[i].hasOwnProperty('rules')) {
rules = sheets[i].rules;
} else {
//try...catch because Firefox not able to enumerate document.styleSheets[].cssRules[] for cross-domain stylesheets.