Browse Source

Removed redirect to https

Avetisyan Karen 7 years ago
parent
commit
db877ec4d0
2 changed files with 1 additions and 3 deletions
  1. BIN
      web_interface/dist/upload/upload.js
  2. 1 3
      web_interface/src/upload/upload.js

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;