diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-02-05 20:24:23 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-02-05 20:24:23 +0100 |
| commit | a98beb13db82b692d32aa0e6e0b0befabbbaa386 (patch) | |
| tree | 878e5acb8eeb0c37437e09ccd9f72e316bc86614 /addons/web_editor/static/src | |
| parent | b08185fc66ab83ec3d25b00beb00633517925520 (diff) | |
[FIX] web_editor: correct check of 'rules' property
see issue #22517
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/transcoder.js | 2 |
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 ca6f751f954..b0831832dd6 100644 --- a/addons/web_editor/static/src/js/transcoder.js +++ b/addons/web_editor/static/src/js/transcoder.js @@ -13,7 +13,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. |
