From 1bc5ca5c33df9d1e09404e841e6bda7f6973f3d2 Mon Sep 17 00:00:00 2001 From: silas Date: Mon, 8 Oct 2018 15:19:01 +0200 Subject: [PATCH] bugfix --- public/js/app.js | 3 ++- .../Application/pwa/js/Fragment/WordRotatorSettingFragment.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 9e137b6..4002bbe 100755 --- a/public/js/app.js +++ b/public/js/app.js @@ -6814,7 +6814,8 @@ class WordRotatorSettingFragment extends LocalStorageSettingsFragment { InstallManager.setCanInstallListener(() => { let installButton = this.findBy("#install-button"); installButton.addEventListener("click", () => { - InstallManager.prompt().then(() => { + InstallManager.prompt().then((e) => { + console.log("clicked", e); installButton.classList.add("hidden"); }); }); diff --git a/src/module/Application/pwa/js/Fragment/WordRotatorSettingFragment.js b/src/module/Application/pwa/js/Fragment/WordRotatorSettingFragment.js index 757cbd2..2f46c99 100644 --- a/src/module/Application/pwa/js/Fragment/WordRotatorSettingFragment.js +++ b/src/module/Application/pwa/js/Fragment/WordRotatorSettingFragment.js @@ -64,7 +64,8 @@ export class WordRotatorSettingFragment extends LocalStorageSettingsFragment { InstallManager.setCanInstallListener(() => { let installButton = this.findBy("#install-button"); installButton.addEventListener("click", () => { - InstallManager.prompt().then(() => { + InstallManager.prompt().then((e) => { + console.log("clicked", e); installButton.classList.add("hidden"); }); });