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.
1 parent 28ed6fa commit bd8bbffCopy full SHA for bd8bbff
src/gridstack.js
@@ -61,7 +61,7 @@
61
style.appendChild(document.createTextNode(''));
62
}
63
document.getElementsByTagName('head')[0].appendChild(style);
64
- return style.sheet;
+ return style.sheet || style.styleSheet;
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 (typeof sheet.addRule === 'function') {
+ } else if (sheet.addRule) {
75
sheet.addRule(selector, rules, index);
76
77
0 commit comments