Refactor: More concise state reset

This commit is contained in:
FoxRefire
2024-05-11 13:17:32 +09:00
parent 83026a3556
commit 28d26be916

View File

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