-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement web install in pwa store app (#41)
* Implement web install in pwa store app * Remove extra whitespace
- Loading branch information
1 parent
cf883d1
commit 68e1e6c
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// All of the UI DOM elements we need. | ||
const pwinterBtn = document.getElementById("installPwinter"); | ||
const pwampBtn = document.getElementById("installPwamp"); | ||
const bubbleBtn = document.getElementById("installBubble"); | ||
|
||
pwinterBtn.addEventListener("click", () => { | ||
navigator.install("https://diek.us/pwinter/index.html?randomize=true", | ||
"https://diek.us/pwinter/") | ||
}); | ||
|
||
pwampBtn.addEventListener("click", () => { | ||
navigator.install("https://microsoftedge.github.io/Demos/pwamp/", | ||
"https://microsoftedge.github.io/Demos/pwamp/") | ||
}); | ||
|
||
bubbleBtn.addEventListener("click", () => { | ||
navigator.install("https://diek.us/bubble/index.html", | ||
"https://diek.us/bubble/") | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters