@@ -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);
|
||||
|
||||
Referencia en una nueva incidencia
Block a user