Skip to content

Commit

Permalink
Updated www
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratikshakhandagale committed Jul 15, 2024
1 parent 4125b72 commit 7151171
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/assets/installPrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
let deferredPrompt;

(function() {
if (!isPWAInstalled()) {
// Automatically show the install prompt
showInstallPrompt();
}

function isPWAInstalled() {
const isIOS = () => {
const userAgent = window.navigator.userAgent.toLowerCase();
Expand Down
5 changes: 5 additions & 0 deletions www/assets/installPrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
let deferredPrompt;

(function() {
if (!isPWAInstalled()) {
// Automatically show the install prompt
showInstallPrompt();
}

function isPWAInstalled() {
const isIOS = () => {
const userAgent = window.navigator.userAgent.toLowerCase();
Expand Down
4 changes: 2 additions & 2 deletions www/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1721035158320,
"timestamp": 1721038191991,
"index": "/index.html",
"assetGroups": [
{
Expand Down Expand Up @@ -664,7 +664,7 @@
"/assets/images/tenantLogo.svg": "82d35bcd66e6d221e5caddb745446f6b9f2effb4",
"/assets/images/tenant_logo.png": "6c2585124d36883147f48283af9582b66ee933c5",
"/assets/images/youtube-video.png": "303c2a2d9a4d3ad1e29de4390d85015b86332762",
"/assets/installPrompt.js": "c1b7843fa3394bb55d80006af0a588047f0fa650",
"/assets/installPrompt.js": "b3b89ce83214758ae5e53ca212b71d7516b9f11c",
"/assets/minus.svg": "dc53b5892394342e80568d81b5ee4ee914f1826a",
"/assets/mock/onSearch.json": "99a02f4ecd0923cccd86379f74d49919cb796370",
"/assets/mock/read.json": "db66b8a83a7ae14e14fb1f41743bc23e6a38b78b",
Expand Down

0 comments on commit 7151171

Please sign in to comment.