From 0f55a1ae86675490fad2297770aa7c0f063bc031 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 6 Aug 2025 20:24:31 +0000 Subject: [PATCH] fix js-crash for url `//`; closes #487 --- copyparty/web/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index df630251..de66887e 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6742,6 +6742,10 @@ var ACtx = !IPHONE && (window.AudioContext || window.webkitAudioContext), dk, mp; +if (location.pathname.indexOf('//') === 0) + hist_replace(location.pathname.replace(/^\/+/, '/')); + + if (window.og_fn) { hash0 = 1; hist_replace(vsplit(get_evpath())[0]);