mirror of
https://github.com/driftywinds/driftywinds.github.io.git
synced 2025-12-19 11:03:32 +00:00
Actually fix wrong URLs
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
(function main() {
|
||||
const success = url => {
|
||||
const host = window.location.host;
|
||||
var path = window.location.pathname.split("/")[1];
|
||||
path = path?.trim === "" ? "" : `/${path}`;
|
||||
window.location.replace(`${host}${path}?source=${url}`
|
||||
)};
|
||||
const success = url => window.location.replace(`index.html?source=${url}`);
|
||||
|
||||
// If valid source provided
|
||||
if (urlSearchParams.has('source') && isValidHTTPURL(sourceURL))
|
||||
|
||||
Reference in New Issue
Block a user