From adb35206eb7bf9b7c50ae778f8e6511668f1e0ed Mon Sep 17 00:00:00 2001 From: cilame Date: Sun, 13 Mar 2022 21:48:31 +0800 Subject: [PATCH] add --- inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject.js b/inject.js index 7dd96b7..ee07c46 100644 --- a/inject.js +++ b/inject.js @@ -856,6 +856,6 @@ chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) { inject_script(`console.error(${JSON.stringify(msg.action.info)})`) } if (msg.action.type == 'addlistener'){ - inject_script(`v_log_env()`) + inject_script(`try{v_log_env()}catch(e){alert('请打开挂钩开关,并选中dom挂钩的全部。')}`) } }); \ No newline at end of file