Point WASM ApiBaseAddress at https://quranb.afrino.co to fix mixed content.
build-and-deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-10-10 01:43:06 +03:30
parent 358f66d45b
commit 6375ad9031
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
{
"ApiBaseAddress": "http://185.252.31.44:30821/"
"ApiBaseAddress": "https://quranb.afrino.co/"
}
@@ -1,5 +1,5 @@
// Cache static WASM assets only — never HTML navigations.
const CACHE = 'tafsirquran-wasm-v1';
const CACHE = 'tafsirquran-wasm-v2';
self.addEventListener('install', event => event.waitUntil(self.skipWaiting()));
self.addEventListener('activate', event => event.waitUntil(
@@ -15,7 +15,7 @@ self.addEventListener('fetch', event => {
event.respondWith(fetch(req));
return;
}
if (url.pathname.startsWith('/api/') || url.origin.includes(':30821')) {
if (url.pathname.startsWith('/api/')) {
event.respondWith(fetch(req));
return;
}