File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import globeGif from "./lib/Styles/globe.gif" ;
2- import polyfill from "terriajs/lib/Core/polyfill" ;
32import "./lib/Styles/loader.css" ;
43
54async 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
4441createLoader ( ) ;
You can’t perform that action at this time.
0 commit comments