website: rename default to bitview

This commit is contained in:
nym21
2025-08-27 11:52:22 +02:00
parent f50374f983
commit 311c4fd29d
99 changed files with 3 additions and 6062 deletions

View File

@@ -0,0 +1,13 @@
import { domToBlob } from "./4.6.6/dist/index.mjs";
/**
* @param {Element} element
*/
export async function screenshot(element) {
const blob = await domToBlob(element, {
scale: 2,
});
const url = URL.createObjectURL(blob);
window.open(url, "_blank");
setTimeout(() => URL.revokeObjectURL(url), 100);
}