Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.0][FIX] Correct check of property 'rules' #22679

Merged
merged 2 commits into from Feb 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/web_editor/static/src/js/transcoder.js
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion doc/cla/individual/remi-filament.md
Expand Up @@ -8,4 +8,4 @@ declaration.

Signed,

Rémi CAZENAVE remi@le-filament.com https://github.com/remi-filament
Rémi CAZENAVE 30716308+remi-filament@users.noreply.github.com https://github.com/remi-filament