From 5d4e8e7ac4322921abf3053d829a06fc43b2881b Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Thu, 22 Dec 2022 07:50:17 -0800 Subject: [PATCH] web: removal of ?pk= feature --- web/js/ui/util.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/web/js/ui/util.js b/web/js/ui/util.js index e64f338..4297a95 100644 --- a/web/js/ui/util.js +++ b/web/js/ui/util.js @@ -161,8 +161,6 @@ function close_reply() { function press_logout() { if (confirm("Are you sure you want to sign out?")) { localStorage.clear(); - const url = new URL(location.href) - url.searchParams.delete("pk") window.location.href = url.toString() } } @@ -243,10 +241,6 @@ function update_title(model) { async function get_pubkey() { let pubkey = get_local_state('pubkey') - // qs pk overrides stored key - const qs_pk = get_qs().get("pk") - if (qs_pk) - return await handle_pubkey(qs_pk) if (pubkey) return pubkey if (window.nostr && window.nostr.getPublicKey) {