From fb5c08ecd939459dcf50f505c5f4c34ce68bf066 Mon Sep 17 00:00:00 2001 From: Neealdon3 <138321129+neealdon3@users.noreply.github.com> Date: Sun, 8 Oct 2023 15:58:31 -0700 Subject: [PATCH] Update cloak.js --- public/js/cloak.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/cloak.js b/public/js/cloak.js index 67c7511..f607e7c 100644 --- a/public/js/cloak.js +++ b/public/js/cloak.js @@ -10,10 +10,10 @@ let blobUrl=URL.createObjectURL(blob); open(blobUrl),URL.revokeObjectURL(blobUrl); } else if (option === 'popup') { - var url = window.location.href; var myWindow1 = window.open('about:blank',height='300',width='500'); - myWindow1.document.write(''); - window.location.replace('https://google.com/'); + var iframe = win.document.createElement("iframe"); + iframe.src = window.location.href + window.location.replace('https://google.com/'); } else if (option === 'ab') { var url = window.location.href; var urlObj = new window.URL(window.location.href);