Explorar o código

Removed redirect to https

Avetisyan Karen %!s(int64=7) %!d(string=hai) anos
pai
achega
db877ec4d0
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. BIN=BIN
      web_interface/dist/upload/upload.js
  2. 1 3
      web_interface/src/upload/upload.js

BIN=BIN
web_interface/dist/upload/upload.js


+ 1 - 3
web_interface/src/upload/upload.js

@@ -13,9 +13,7 @@ document.onmousemove = function(){
 function countdown() {
   var countDown = 5;
   setInterval(function () {
-    if (countDown == 1) {
-      window.location.href = 'https:' + window.location.origin.substring(window.location.protocol.length);
-    }
+    if (countDown == 1) { window.location.href = '/'; }
     if (countDown > 0){ countDown--; }
     document.getElementById('count-number').innerHTML = countDown;
     return countDown;