Skip to content

Commit a9afdff

Browse files
committed
Remove call to stale polyfill function.
1 parent 4f2c7cf commit a9afdff

1 file changed

Lines changed: 10 additions & 13 deletions

File tree

entry.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import globeGif from "./lib/Styles/globe.gif";
2-
import polyfill from "terriajs/lib/Core/polyfill";
32
import "./lib/Styles/loader.css";
43

54
async function loadMainScript() {
@@ -27,18 +26,16 @@ function createLoader() {
2726
loaderDiv.style.backgroundColor = "#383F4D";
2827
document.body.appendChild(loaderDiv);
2928

30-
polyfill(function () {
31-
loadMainScript()
32-
.catch((err) => {
33-
// Ignore errors and try to show the map anyway
34-
})
35-
.then(() => {
36-
loaderDiv.classList.add("loader-ui-hide");
37-
setTimeout(() => {
38-
document.body.removeChild(loaderDiv);
39-
}, 2000);
40-
});
41-
});
29+
loadMainScript()
30+
.catch((_err) => {
31+
// Ignore errors and try to show the map anyway
32+
})
33+
.then(() => {
34+
loaderDiv.classList.add("loader-ui-hide");
35+
setTimeout(() => {
36+
document.body.removeChild(loaderDiv);
37+
}, 2000);
38+
});
4239
}
4340

4441
createLoader();

0 commit comments

Comments
 (0)