summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraltaf-creator <64111012+altaf-creator@users.noreply.github.com>2023-05-04 21:02:09 +0700
committeraltaf-creator <64111012+altaf-creator@users.noreply.github.com>2023-05-04 21:02:09 +0700
commit85ee5701f80c265f069845b840f368bacf6fc5a6 (patch)
tree94df1bdd87395decf513c2bdfccbfbf6637b9e7a /src
parenta77cf54dd89e5766ae6112227addcf6d1c93f926 (diff)
PWA Update - attempt 5
Diffstat (limited to 'src')
-rw-r--r--src/images/favicon-1080x1080.pngbin0 -> 504303 bytes
-rw-r--r--src/images/favicon.pngbin504303 -> 101944 bytes
-rw-r--r--src/manifest.json6
-rw-r--r--src/scripts/main.js3
4 files changed, 6 insertions, 3 deletions
diff --git a/src/images/favicon-1080x1080.png b/src/images/favicon-1080x1080.png
new file mode 100644
index 0000000..d4d43a2
--- /dev/null
+++ b/src/images/favicon-1080x1080.png
Binary files differ
diff --git a/src/images/favicon.png b/src/images/favicon.png
index d4d43a2..80502b6 100644
--- a/src/images/favicon.png
+++ b/src/images/favicon.png
Binary files 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;
}