summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-02-07 17:47:26 +0100
committerChristophe Simonis <chs@odoo.com>2018-02-07 17:47:26 +0100
commitda19a7701e151b9cf5eea74576e426f220fc6063 (patch)
treec711e3476008a63436e8d707b3f4a291a1aa280e /addons/web_editor/static/src/js
parent36d07bfc0f5b9841b17f4cfdf2ffb029ea1280e0 (diff)
parent23752102a08ec53f576d734b733e8fba1e341533 (diff)
[MERGE] forward port branch saas-16 up to 23752102a08
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/editor/transcoder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js
index 11d23bf603b..c90d5ebab1d 100644
--- a/addons/web_editor/static/src/js/editor/transcoder.js
+++ b/addons/web_editor/static/src/js/editor/transcoder.js
@@ -18,7 +18,7 @@ function getMatchedCSSRules(a) {
var sheets = document.styleSheets;
for (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