Skip to content

Commit

Permalink
fix PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
Dituon committed Jun 11, 2023
1 parent e1d596b commit df849cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="manifest" href="./manifest.json" />

<meta name="theme-color" content="#ff8ba7" />
<link rel="apple-touch-icon" sizes="180x180" href="./icon/apple-touch-icon.png">
Expand Down
5 changes: 2 additions & 3 deletions src/module/app/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ authorInputElement.addEventListener('change', e => {
const installAppBtn = document.getElementById('install-app')
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault()
deferredPrompt = e

installAppBtn.addEventListener('click', e => {
deferredPrompt.prompt()
installAppBtn.addEventListener('click', () => {
e.prompt()
})
})

Expand Down

0 comments on commit df849cd

Please sign in to comment.