1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

only show hand off message on desktop (#7965)

This commit is contained in:
Jake Fink 2024-02-15 12:07:22 -05:00 committed by GitHub
parent 8fb5ef3035
commit b46eb274bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,9 @@ window.addEventListener("load", () => {
window.postMessage({ command: "duoResult", code: code, state: state }, "*");
processAndDisplayHandoffMessage();
} else if (client === "mobile" || client === "desktop") {
processAndDisplayHandoffMessage();
if (client === "desktop") {
processAndDisplayHandoffMessage();
}
document.location.replace(
mobileDesktopCallback +
"?code=" +