From 1b464f75cc6b036d520c04944c5c522b5671b72d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 7 Sep 2024 16:47:43 -0400 Subject: [PATCH] Fix spurious browser error at the console --- platform/common/vapi-background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/common/vapi-background.js b/platform/common/vapi-background.js index 283ffe6ef..26507982a 100644 --- a/platform/common/vapi-background.js +++ b/platform/common/vapi-background.js @@ -958,6 +958,7 @@ vAPI.messaging = { onPortDisconnect: function(port) { this.ports.delete(port.name); + void browser.runtime.lastError; }, // https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port