diff options
| author | yo momma <shutup@oops.wtf> | 2026-01-27 03:33:16 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-01-27 03:33:16 +0000 |
| commit | fc9a4ea22eb91757b95cbe1bf1708be17fc2337a (patch) | |
| tree | 76a0122149e3288ee21d7fb6d0410b1b7b8970a4 /static/js/src/search.js | |
| parent | 25b74138d68ade87689e714f10e1f3116da5bbee (diff) | |
- 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
Diffstat (limited to 'static/js/src/search.js')
| -rwxr-xr-x | static/js/src/search.js | 6 |
1 files changed, 3 insertions, 3 deletions
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("<s"+"cript src='http://dump.fm/cmd/search/"+term+"?callback=Search.results' id='search-script'></s"+"cript>") + $("head").append("<s"+"cript src='/cmd/search/"+term+"?callback=Search.results' id='search-script'></s"+"cript>") } }, @@ -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) |
