From fc9a4ea22eb91757b95cbe1bf1708be17fc2337a Mon Sep 17 00:00:00 2001 From: yo momma Date: Tue, 27 Jan 2026 03:33:16 +0000 Subject: Fix HTTPS/mixed content; make config env-driven - Replace hardcoded dump.fm URLs with host/scheme config\n- Add optional passwordless login flow\n- Update templates/static assets to avoid blocked HTTP resources\n- Ignore local uploads/SQL dumps --- static/js/src/search.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'static/js/src/search.js') diff --git a/static/js/src/search.js b/static/js/src/search.js index f62f432..c7bdabf 100755 --- a/static/js/src/search.js +++ b/static/js/src/search.js @@ -159,7 +159,7 @@ Search = { }, 'doAjax': function(term) { - if (Domain == "http://dump.fm") { + if (Domain == "/") { $.ajax({ "dataType": "json", "url": "/cmd/search/" + term, @@ -169,7 +169,7 @@ Search = { }) } else { // search main site via jsonp $("#search-script").remove() - $("head").append("") + $("head").append("") } }, @@ -204,7 +204,7 @@ Search = { results.forEach(function(r){ var url = r.url if (url.charAt(0) == '/') - url = 'http://dump.fm/images' + url + url = '/images' + url else url = 'http://' + url urls.push(url) -- cgit v1.2.3-70-g09d2