This commit is contained in:
silas 2018-10-08 15:19:01 +02:00
parent 15b840e000
commit 1bc5ca5c33
2 changed files with 4 additions and 2 deletions

View File

@ -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");
});
});

View File

@ -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");
});
});