mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 21:28:29 +03:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb973ba42d |
@@ -177,14 +177,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
await PreviewCertificates();
|
let setupFunctions = [
|
||||||
await PreviewText();
|
previewCertificates,
|
||||||
await enableCopyLogic();
|
previewText,
|
||||||
await enableCollapsibleLogic();
|
enableCopyLogic,
|
||||||
await setupSafeView();
|
enableCollapsibleLogic,
|
||||||
|
setupSafeView
|
||||||
|
];
|
||||||
|
setupFunctions.forEach(async f => {
|
||||||
|
try {
|
||||||
|
await f();
|
||||||
|
} catch (e) {
|
||||||
|
console.error(`Error in ${f.name}: ${e}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function PreviewCertificates() {
|
async function previewCertificates() {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Array.from(document.querySelectorAll(".pem-certificate")).map(async el => {
|
Array.from(document.querySelectorAll(".pem-certificate")).map(async el => {
|
||||||
let certificate = await (await fetch(el.getAttribute("pem"))).text();
|
let certificate = await (await fetch(el.getAttribute("pem"))).text();
|
||||||
@@ -202,7 +211,7 @@
|
|||||||
console.log("certificate preview done");
|
console.log("certificate preview done");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function PreviewText() {
|
async function previewText() {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Array.from(document.querySelectorAll(".text-preview")).map(async el => {
|
Array.from(document.querySelectorAll(".text-preview")).map(async el => {
|
||||||
let textContent = await (await fetch(el.getAttribute("url"))).text();
|
let textContent = await (await fetch(el.getAttribute("url"))).text();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ _MAJOR = "0"
|
|||||||
_MINOR = "9"
|
_MINOR = "9"
|
||||||
# On main and in a nightly release the patch should be one ahead of the last
|
# On main and in a nightly release the patch should be one ahead of the last
|
||||||
# released build.
|
# released build.
|
||||||
_PATCH = "0"
|
_PATCH = "1"
|
||||||
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
||||||
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
||||||
_SUFFIX = ""
|
_SUFFIX = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user