Sven Fehler 2 тижнів тому
батько
коміт
68b548c754
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      js/redirect.js

+ 3 - 3
js/redirect.js

@@ -1,8 +1,8 @@
-function redirect(redirectURL) {
+function redirect(redirectURL, time = 1000) {
     try {
         setTimeout(function () {
             window.location.replace(redirectURL);
-        }, 1000);
+        }, time);
     }
     catch (err) {
         try {
@@ -12,4 +12,4 @@ function redirect(redirectURL) {
             window.alert(`Couldn't automatically redirect - Please visit this link manually: ${redirectURL}`);
         }
     }
-}
+}