From 4de1f229959eb58e50a844cddf6427d40410102a Mon Sep 17 00:00:00 2001 From: Vap0r1ze Date: Wed, 24 Jul 2024 05:44:39 -0400 Subject: [PATCH] add ping handler --- extension/background.js | 3 +++ extension/common.js | 1 + 2 files changed, 4 insertions(+) diff --git a/extension/background.js b/extension/background.js index cb4ff04..fa43ec5 100644 --- a/extension/background.js +++ b/extension/background.js @@ -110,6 +110,9 @@ async function handleContentScriptMessage({type, params, host}) { return result } + case 'ping': { + return 'pong' + } } return diff --git a/extension/common.js b/extension/common.js index 5264fe2..3042a56 100644 --- a/extension/common.js +++ b/extension/common.js @@ -1,6 +1,7 @@ import browser from 'webextension-polyfill' export const NO_PERMISSIONS_REQUIRED = { + ping: true, replaceURL: true }