mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
finish autofill from view, other misc cleanup (#1368)
* finish autofill from view, other misc cleanup * compare hostnames for authResult
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
window.addEventListener("message", function(event) {
|
||||
if (event.source != window)
|
||||
window.addEventListener('message', (event) => {
|
||||
if (event.source !== window)
|
||||
return;
|
||||
|
||||
if (event.data.command && (event.data.command == "authResult")) {
|
||||
if (event.data.command && (event.data.command === 'authResult')) {
|
||||
chrome.runtime.sendMessage({
|
||||
command: event.data.command,
|
||||
code: event.data.code,
|
||||
state: event.data.state,
|
||||
referrer: event.source.location.hostname
|
||||
referrer: event.source.location.hostname,
|
||||
});
|
||||
}
|
||||
}, false)
|
||||
}, false)
|
||||
|
||||
Reference in New Issue
Block a user