From 549983a928590cddaade5688904a0ba6d44b6e3d Mon Sep 17 00:00:00 2001 From: MengYX Date: Mon, 8 Feb 2021 03:35:26 +0800 Subject: [PATCH] Adapt: [Extension] for Firefox --- src/extension/popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extension/popup.js b/src/extension/popup.js index 244624f..cfb7565 100644 --- a/src/extension/popup.js +++ b/src/extension/popup.js @@ -1 +1,2 @@ -window.open(chrome.runtime.getURL('./index.html')); +const bs = chrome || browser +window.open(bs.runtime.getURL('./index.html'))