put it in the wrong place

This commit is contained in:
Boof 2023-08-23 14:35:58 +02:00 committed by GitHub
parent 42ee4a1967
commit e6d2ef9b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}