From 80f0fa8bd90b99e8823d7b0d7692fd81ce25ffd6 Mon Sep 17 00:00:00 2001 From: Nuwan Date: Sat, 23 Nov 2024 20:00:26 +0530 Subject: [PATCH] add debug entries to check custom url --- web/app/assets/javascripts/JamServer.js | 7 +------ web/app/views/clients/index.html.erb | 2 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/web/app/assets/javascripts/JamServer.js b/web/app/assets/javascripts/JamServer.js index 7a12e2daf..8b618e983 100644 --- a/web/app/assets/javascripts/JamServer.js +++ b/web/app/assets/javascripts/JamServer.js @@ -373,12 +373,7 @@ function handleLoggedInResponse(customUrl) { console.log("handleLoggedInResponse", customUrl); - try { - const url = new URL(customUrl); - window.location.href = customUrl; - } catch (e) { - console.log("** error in handleLoggedInResponse", e, customUrl); - } + window.location.href = customUrl; } function setActive(active) { diff --git a/web/app/views/clients/index.html.erb b/web/app/views/clients/index.html.erb index 2f8840d67..2f40a52a8 100644 --- a/web/app/views/clients/index.html.erb +++ b/web/app/views/clients/index.html.erb @@ -450,10 +450,12 @@ }); window.addEventListener('hashchange', function() { + console.log("_DEBUG_ hashchange event"); handleCustomUrlScheme(); }); window.addEventListener('load', (event) => { + console.log("_DEBUG_ load event"); handleCustomUrlScheme(); });