Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2026-02-09 00:16:51 +01:00
padre 4b66a91750
commit 728e8a3de7
Se han modificado 8 ficheros con 274 adiciones y 274 borrados

Ver fichero

@@ -44,38 +44,38 @@ const browserAPI = typeof browser !== "undefined" ? browser : chrome;
if (typeof Versions === "undefined") {
await loadScript("versions.js");
}
Versions.showPage(document, DB.db, params[1], params[3]);
Versions.showPage(document, DB, params[1], params[3]);
} else if ((params = /^addon\/(.+?)\/(eula|privacy|license\/(.+))$/.exec(url)) !== null) {
if (typeof EPL === "undefined") {
await loadScript("epl.js");
}
EPL.showPage(document, DB.db, params[1], params[2], params[3]);
EPL.showPage(document, DB, params[1], params[2], params[3]);
} else if ((params = /^addon\/(.+?)\/?$/.exec(url)) !== null) {
if (typeof Addon === "undefined") {
await loadScript("addon.js");
}
Addon.showPage(document, DB.db, params[1]);
Addon.showPage(document, DB, params[1]);
} else if ((params = /^list(\/([a-z-]+))?(\?tag=(.+?)|\?q=(.+?))?([\?|\&]sort=(\w+))?\&?(page=(\d+))?$/.exec(url)) !== null) {
if (typeof List === "undefined") {
await loadScript("list.js");
}
List.showPage(document, DB.db, params[2], params[4], params[5], params[7], params[9]);
List.showPage(document, DB, params[2], params[4], params[5], params[7], params[9]);
} else if (url === "" || url === "list") {
if (typeof TCloud === "undefined") {
await loadScript("tcloud.js");
}
TCloud.showPage(document, DB.db);
TCloud.showPage(document, DB);
} else if (url === "about") {
if (typeof About === "undefined") {
await loadScript("about.js");
}
About.showPage(document, DB.db);
About.showPage(document, DB);
} else {
// Búsqueda genérica
if (typeof List === "undefined") {
await loadScript("list.js");
}
List.showPage(document, DB.db, undefined, undefined, url, undefined, undefined);
List.showPage(document, DB, undefined, undefined, url, undefined, undefined);
}
} catch (e) {
console.error("Navigation error:", e);