From 85ee5701f80c265f069845b840f368bacf6fc5a6 Mon Sep 17 00:00:00 2001 From: altaf-creator <64111012+altaf-creator@users.noreply.github.com> Date: Thu, 4 May 2023 21:02:09 +0700 Subject: PWA Update - attempt 5 --- src/images/favicon-1080x1080.png | Bin 0 -> 504303 bytes src/images/favicon.png | Bin 504303 -> 101944 bytes src/manifest.json | 6 +++++- src/scripts/main.js | 3 +-- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src/images/favicon-1080x1080.png diff --git a/src/images/favicon-1080x1080.png b/src/images/favicon-1080x1080.png new file mode 100644 index 0000000..d4d43a2 Binary files /dev/null and b/src/images/favicon-1080x1080.png differ diff --git a/src/images/favicon.png b/src/images/favicon.png index d4d43a2..80502b6 100644 Binary files a/src/images/favicon.png and b/src/images/favicon.png differ diff --git a/src/manifest.json b/src/manifest.json index 8cfd7b9..e586f3e 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,12 +1,16 @@ { "name": "OpenQuran", + "short_name": "OpenQuran", + "start_url": "index.html", "display": "standalone", "theme_color": "#F3F3F3", + "background_color": "#FFFFFF", + "orientation": "portrait-primary", "icons": [ { "src": "images/favicon.png", "type": "image/png", - "sizes": "1080x1080" + "sizes": "512x512" } ] } \ No newline at end of file diff --git a/src/scripts/main.js b/src/scripts/main.js index 8f9bded..c610e83 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -2,8 +2,7 @@ function urlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); - if (http.status != 200) - console.log(`${http.status} ${url} `) + console.log(`${http.status} ${url} `) return http.status != 404; } -- cgit v1.2.3