mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
fix
This commit is contained in:
parent
b8d19427cf
commit
c7e13e2d81
@ -474,7 +474,7 @@ window.search = window.search || {};
|
|||||||
(async function loadSearchIndex(lang = window.lang || 'en') {
|
(async function loadSearchIndex(lang = window.lang || 'en') {
|
||||||
/* ───────── paths ───────── */
|
/* ───────── paths ───────── */
|
||||||
const branch = lang === 'en' ? 'master' : lang;
|
const branch = lang === 'en' ? 'master' : lang;
|
||||||
const baseRemote = `https://raw.githubusercontent.com/HackTricks-wiki/hacktricks/${branch}`;
|
const baseRemote = `https://raw.githubusercontent.com/HackTricks-wiki/hacktricks/refs/heads/${branch}`;
|
||||||
const remoteJs = `${baseRemote}/searchindex.js`;
|
const remoteJs = `${baseRemote}/searchindex.js`;
|
||||||
const localJs = '/searchindex.js';
|
const localJs = '/searchindex.js';
|
||||||
const TIMEOUT_MS = 5_000;
|
const TIMEOUT_MS = 5_000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user