diff --git a/lib/templates.dart b/lib/templates.dart index d604876..a04edf2 100644 --- a/lib/templates.dart +++ b/lib/templates.dart @@ -519,14 +519,8 @@ const List _indexHtmlBrandingPicture = [ const String _webJS = ''' function removeSplashFromWeb() { - const elem = document.getElementById("splash"); - if (elem) { - elem.remove(); - } - const elem2 = document.getElementById("splash-branding"); - if (elem2) { - elem2.remove(); - } + document.getElementById("splash")?.remove(); + document.getElementById("splash-branding")?.remove(); document.body.style.background = "transparent"; } ''';