Skip to content

Commit

Permalink
TODO Install prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Closer2U committed Feb 21, 2024
1 parent 3e5be8c commit 9b67aaa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
29 changes: 1 addition & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Just Breathe!</title>
<link rel="canonical" href="https://Closer2U.github.io/just-breathe/" />
<link rel="manifest" href="/just-breathe/manifest.webmanifest">
<link rel="manifest" href="/just-breathe/manifest.json">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/pulse.css">
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@pwabuilder/pwainstall"
></script>
</head>
<body>

Expand Down Expand Up @@ -54,28 +50,5 @@
<script src="js/app.js"></script>



<pwa-install onload="install();"
id="pwa-install"
manual-apple="true"
manual-chrome="true"
disable-chrome="true"

install-description="Custom call to install text"
disable-install-description="true"
disable-screenshots="true"

manifest-url="/manifest.json"
name="PWA"
description="Progressive web application"
icon="/icon.png">
</pwa-install>

<script type="text/javascript">
var pwaInstall = document.getElementsByTagName('pwa-install')[0];

pwaInstall.addEventListener('pwa-install-success-event', (event) => {console.log(event.detail.message)});
</script>

</body>
</html>
2 changes: 0 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "https://unpkg.com/[email protected]";

console.log('I am running!');

function start(){
Expand Down

0 comments on commit 9b67aaa

Please sign in to comment.