Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab68d40

Browse files
committed
testing with ie8
1 parent 3b81397 commit ab68d40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gridstack.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727

2828
create_stylesheet: function () {
2929
var style = document.createElement("style");
30-
style.appendChild(document.createTextNode(""));
30+
style.setAttribute("type", "text/css");
31+
if (style.styleSheet) {
32+
style.styleSheet.cssText = "";
33+
}
34+
else {
35+
style.appendChild(document.createTextNode(""));
36+
}
3137
document.head.appendChild(style);
3238
return style.sheet;
3339
},

0 commit comments

Comments
 (0)