Index: options.js |
=================================================================== |
--- a/options.js |
+++ b/options.js |
@@ -56,7 +56,13 @@ |
message[paramKeys[i]] = arguments[i]; |
} |
- ext.backgroundPage.sendMessage(message, callback); |
+ // Edge silently fails when sendMessage is called with a callback |
+ // parameter of undefined, so we work around that here. |
+ // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8504730/ |
+ if (callback) |
+ ext.backgroundPage.sendMessage(message, callback); |
+ else |
+ ext.backgroundPage.sendMessage(message); |
}; |
} |