Commit 46b64fa5 authored by Pallav Agarwal's avatar Pallav Agarwal

A little tested this time

parent 5a096195
Pipeline #2720897 (#) passed with stage
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
......@@ -10,7 +10,8 @@ fjs.parentNode.insertBefore(js, fjs);
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
&& (window.location.protocol != 'https:')){
&& (window.location.protocol != 'https:'
|| window.location.toString().match(/http.?:\/\/www\./))){
window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment