Update script.js
Browse files
script.js
CHANGED
@@ -271,7 +271,7 @@ try {
|
|
271 |
|
272 |
alert(`Akses halaman ini di: ${urlDB}`, false);
|
273 |
|
274 |
-
if (window.location.href.replace("/?", "?")
|
275 |
await alert(`Kamu akan diarahkan ke halaman ${urlDB}`);
|
276 |
await new Promise((res) => setTimeout(res, 1000));
|
277 |
window.location.href = urlDB;
|
|
|
271 |
|
272 |
alert(`Akses halaman ini di: ${urlDB}`, false);
|
273 |
|
274 |
+
if (window.location.href.replace("/?", "?").replace("index.html", "") !== urlDB {
|
275 |
await alert(`Kamu akan diarahkan ke halaman ${urlDB}`);
|
276 |
await new Promise((res) => setTimeout(res, 1000));
|
277 |
window.location.href = urlDB;
|