Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 016c161 + 9007eea commit b0e68caCopy full SHA for b0e68ca
src/gridstack.js
@@ -61,7 +61,7 @@
61
style.appendChild(document.createTextNode(''));
62
}
63
document.getElementsByTagName('head')[0].appendChild(style);
64
- return style.sheet || style.styleSheet;
+ return style.sheet;
65
},
66
67
removeStylesheet: function(id) {
@@ -71,7 +71,7 @@
71
insertCSSRule: function(sheet, selector, rules, index) {
72
if (typeof sheet.insertRule === 'function') {
73
sheet.insertRule(selector + '{' + rules + '}', index);
74
- } else if (sheet.addRule) {
+ } else if (typeof sheet.addRule === 'function') {
75
sheet.addRule(selector, rules, index);
76
77
0 commit comments