mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
desktop-login: Fix window.open invocation.
window.open expects a string, not a URL object. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c20fdb0d8b
commit
b079ba97ff
@@ -47,12 +47,9 @@ async function decrypt_manual() {
|
||||
|
||||
const keyHex = Array.from(key, (b) => b.toString(16).padStart(2, "0")).join("");
|
||||
window.open(
|
||||
new URL(
|
||||
(window.location.search ? window.location.search + "&" : "?") +
|
||||
"desktop_flow_otp=" +
|
||||
encodeURIComponent(keyHex),
|
||||
window.location.href
|
||||
),
|
||||
(window.location.search ? window.location.search + "&" : "?") +
|
||||
"desktop_flow_otp=" +
|
||||
encodeURIComponent(keyHex),
|
||||
"_blank"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user