mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 23:59:59 +01:00
chore(print): basic infrastructure to support reporting progress
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user