File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -333,15 +333,17 @@ namespace Uno.WebAssembly.Bootstrap {
333
333
this . loader . style . setProperty ( "--dark-theme-accent-color" , manifest . darkThemeAccentColor ) ;
334
334
}
335
335
const img = this . loader . querySelector ( "img" ) ;
336
- if ( manifest && manifest . splashScreenImage ) {
337
- if ( ! manifest . splashScreenImage . match ( / ^ ( h t t p ( s ) ? : \/ \/ .) / g) ) {
338
- // Local images need to be prefixed with the app based path
339
- manifest . splashScreenImage = `${ this . _unoConfig . uno_app_base } /${ manifest . splashScreenImage } ` ;
340
- }
336
+ if ( img ) {
337
+ if ( manifest && manifest . splashScreenImage ) {
338
+ if ( ! manifest . splashScreenImage . match ( / ^ ( h t t p ( s ) ? : \/ \/ .) / g) ) {
339
+ // Local images need to be prefixed with the app based path
340
+ manifest . splashScreenImage = `${ this . _unoConfig . uno_app_base } /${ manifest . splashScreenImage } ` ;
341
+ }
341
342
342
- img . setAttribute ( "src" , manifest . splashScreenImage ) ;
343
- } else {
344
- img . setAttribute ( "src" , "https://uno-assets.platform.uno/logos/uno-splashscreen-light.png" ) ;
343
+ img . setAttribute ( "src" , manifest . splashScreenImage ) ;
344
+ } else {
345
+ img . setAttribute ( "src" , "https://uno-assets.platform.uno/logos/uno-splashscreen-light.png" ) ;
346
+ }
345
347
}
346
348
} ;
347
349
You can’t perform that action at this time.
0 commit comments