summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-02-07 13:34:03 +0100
committerChristophe Simonis <chs@odoo.com>2018-02-07 13:34:03 +0100
commitae3643ba2ae1939cd97ad23f4eff4630f5b09465 (patch)
treefa3d6b8c3e08c08e30012d80e1029d7c480f6a8a /addons/web_editor/static/src
parentf22cf5f711d983832a2ce16cdfbfc09e59b6bb07 (diff)
parenta93a9d43e6b383a8ade8395017110e49b80d48cd (diff)
[MERGE] forward port branch 10.0 up to a93a9d43e6b
Diffstat (limited to 'addons/web_editor/static/src')
-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.