We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4998b07 commit 8686866Copy full SHA for 8686866
1 file changed
webext/add-on/background.js
@@ -13,6 +13,10 @@ function connected(port) {
13
14
// Initialize native port
15
nativePort = browser.runtime.connectNative("credential_manager_shim");
16
+ if (nativePort.error) {
17
+ console.error(nativePort.error)
18
+ throw nativePort.error
19
+ }
20
console.log(`connected to native app`)
21
console.log(nativePort)
22
@@ -80,4 +84,4 @@ function serializeRequest(options) {
80
84
81
85
// Listen for connections from content script
82
86
console.log("Starting up credential_manager_shim background script")
83
-browser.runtime.onConnect.addListener(connected);
87
+browser.runtime.onConnect.addListener(connected);
0 commit comments