diff --git a/webextension/edge/background.js b/webextension/edge/background.js index f239c0f..a4b446e 100644 --- a/webextension/edge/background.js +++ b/webextension/edge/background.js @@ -348,6 +348,11 @@ var ResourceCap = { check: function(tabId, ntabs) { var query = new String(`R ${BROWSER} ${ntabs}`); chrome.runtime.sendNativeMessage(SERVER_NAME, query, (resp) => { + // Need this to support ThinBridge v4.0.2.3 (or before) + if (chrome.runtime.lastError) { + return; + } + if (resp.closeTab) { chrome.tabs.remove(tabId, () => { if (chrome.runtime.lastError) {