|
@@ -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}`);
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|