Adityadn commited on
Commit
55c2e69
·
verified ·
1 Parent(s): 1bdc4ba

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +1 -1
script.js CHANGED
@@ -271,7 +271,7 @@ try {
271
 
272
  alert(`Akses halaman ini di: ${urlDB}`, false);
273
 
274
- if (window.location.href.replace("/?", "?") !== urlDB.replace("index.html", "")) {
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;