This commit is contained in:
Carlos Polop
2025-04-21 01:57:47 +02:00
parent 1af5f28379
commit 84c84de0f6

View File

@@ -474,7 +474,7 @@ window.search = window.search || {};
(async function loadSearchIndex(lang = window.lang || 'en') {
/* ───────── paths ───────── */
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-cloud/refs/heads/${branch}`;
const remoteJs = `${baseRemote}/searchindex.js`;
const localJs = '/searchindex.js';
const TIMEOUT_MS = 5_000;