Installierbar und Settings bearbeitet
This commit is contained in:
@@ -1 +1,3 @@
|
||||
<div></div>
|
||||
<div>
|
||||
<p></p>
|
||||
</div>
|
||||
@@ -62,9 +62,14 @@ export class WordRotatorSettingFragment extends LocalStorageSettingsFragment {
|
||||
});
|
||||
|
||||
InstallManager.setCanInstallListener((e) => {
|
||||
let installButton =this.findBy("#install-button");
|
||||
let installButton = this.findBy("#install-button");
|
||||
installButton.addEventListener("click", () => {
|
||||
e.prompt();
|
||||
e["userChoice"].then(res => {
|
||||
if (res["outcome"] === 'accepted') {
|
||||
installButton.classList.add("hidden");
|
||||
}
|
||||
});
|
||||
});
|
||||
installButton.classList.remove("hidden");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user