Fix spurious browser error at the console

This commit is contained in:
Raymond Hill 2024-09-07 16:47:43 -04:00
parent bec5d53ce0
commit 1b464f75cc
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 0 deletions

View File

@ -958,6 +958,7 @@ vAPI.messaging = {
onPortDisconnect: function(port) { onPortDisconnect: function(port) {
this.ports.delete(port.name); this.ports.delete(port.name);
void browser.runtime.lastError;
}, },
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port // https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port