From 28d26be91607fabea2b3c9d9706ef7d0ecd249bf Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Sat, 11 May 2024 13:17:32 +0900 Subject: [PATCH] Refactor: More concise state reset --- background.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/background.js b/background.js index 7d33914..19ecfb6 100644 --- a/background.js +++ b/background.js @@ -41,10 +41,7 @@ chrome.runtime.onMessage.addListener( function (request, sender, sendResponse) { switch(request.type){ case "RESET": - window.psshs=[]; - window.requests=[]; - window.bodys=[]; - window.clearkey=null; + location.reload() break; case "PSSH": window.psshs.push(request.text)