mirror of
https://github.com/hexahigh/noRef.git
synced 2025-12-11 20:15:09 +01:00
put it in the wrong place
This commit is contained in:
parent
42ee4a1967
commit
e6d2ef9b6f
6
index.js
6
index.js
@ -6,7 +6,9 @@ var c = url.searchParams.get("url");
|
||||
// Check that there is something there otherwhise it will get stuck in a loop
|
||||
if(c) {
|
||||
if (c.startsWith("http://") || c.startsWith("https://")) {
|
||||
c = "https://" + c
|
||||
window.location = (c)
|
||||
} else {
|
||||
c = "http://" + c
|
||||
window.location = (c)
|
||||
}
|
||||
window.location = (c)
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user