chore(print): basic infrastructure to support reporting progress

This commit is contained in:
Elian Doran
2025-11-21 12:06:32 +02:00
parent 63d430c3d9
commit 6ca941e8e9
5 changed files with 22 additions and 5 deletions

View File

@@ -162,6 +162,10 @@ export default function NoteDetail() {
return;
}
iframe.contentWindow.addEventListener("note-load-progress", (e) => {
console.log("Got ", e);
});
iframe.contentWindow.addEventListener("note-ready", () => {
toast.closePersistent("printing");
iframe.contentWindow?.print();