Do not attempt to close the app install dialog if it doesn't exist yet

This commit is contained in:
Johannes Zellner
2025-07-03 12:32:59 +02:00
parent 4bad752f30
commit 8410e541b6

View File

@@ -141,7 +141,7 @@ async function getInstalledApps() {
async function onHashChange() {
if (window.location.hash.indexOf('#/appstore/') !== 0) return;
appInstallDialog.value.close();
if (appInstallDialog.value) appInstallDialog.value.close();
const query = window.location.hash.slice('#/appstore/'.length);
if (query) {