Skip to content

Commit b0eb80c

Browse files
committed
refactor: Improved browser compatibility list
1 parent f14a4cd commit b0eb80c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

index.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
<script src="loader.js"></script>
99
<link rel="stylesheet" href="loader.css" />
1010
</head>
11-
<body></body>
11+
<body>
12+
13+
<button onclick="Loader.open()">Open Loader</button>
14+
15+
</body>
1216
</html>

loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Loader = {
1616
this.loader.setAttribute('id', 'loader');
1717
this.loader.classList.add('loader_website');
1818
this.loader.innerHTML = this.html;
19-
this.body.append(this.loader);
19+
this.body.appendChild(this.loader);
2020
setTimeout(function () {
2121
Loader.body.classList.add(Loader.cssClass);
2222
}, 1);

0 commit comments

Comments
 (0)