Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarjolintu <sami.vanttinen@protonmail.com>2022-04-17 11:57:31 +0300
committervarjolintu <sami.vanttinen@protonmail.com>2022-04-17 11:57:31 +0300
commit6616b0ea591e86a52ba1bf49eebfdd69d3f5f093 (patch)
tree58e682cded3a8aa88ef3b927b47ba2b6c2345a59
parente18681038537c413cbb41db34d742e2bcc29a157 (diff)
Bypass polyfill library on sendNativeMessage callfeature/safari_support
-rw-r--r--keepassxc-browser/background/client.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/keepassxc-browser/background/client.js b/keepassxc-browser/background/client.js
index b1b0683..44533b4 100644
--- a/keepassxc-browser/background/client.js
+++ b/keepassxc-browser/background/client.js
@@ -122,7 +122,9 @@ keepassClient.sendNativeMessage = function(request, enableTimeout = false, timeo
// Send the request
if (keepass.isSafari) {
- browser.runtime.sendNativeMessage(keepass.nativeHostName, { message: JSON.stringify(request) });
+ chrome.runtime.sendNativeMessage(keepass.nativeHostName, { message: JSON.stringify(request) }, function(response) {
+ resolve(JSON.parse(response));
+ });
} else if (keepass.nativePort) {
keepass.nativePort.postMessage(request);
}