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 28ed6fa + bd8bbff commit 016c161Copy full SHA for 016c161
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