From 9c006ce778748122f29845debef794faa3d9ea87 Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Wed, 23 Aug 2023 14:27:33 +0200 Subject: [PATCH] fixed? --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4910ca9..e0846ba 100644 --- a/index.js +++ b/index.js @@ -2,4 +2,8 @@ const currentUrl = window.location.href var url = new URL(currentUrl); var c = url.searchParams.get("url"); -window.location.href = (c) \ No newline at end of file + +// Check that there is something there otherwhise it will get stuck in a loop +if(c) { +window.location.href = (c) +} \ No newline at end of file