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
1 changed files with 3 additions and 1 deletions

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=" +