mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Bypass polyfill library on sendNativeMessage call
This commit is contained in:
parent
e186810385
commit
6616b0ea59
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue