feat: print the pictures the game's print kits send

the game page's ajPrint (printImage) had nothing taking it: the picture now goes on a page of its own in a hidden window that runs no script, and the system print dialog opens.
This commit is contained in:
Burrowdev committed 2026-10-23 21:52:59 +03:00
1 parent b52c9194f5
commit 77be498599
3 files changed
+50

No files matched your search

+4
View File
@@ -1288,6 +1288,10 @@
else if (event.channel === "reportError") {
reportError(event.args[0]);
}
else if (event.channel === "printImage") {
// the game's print kits and art studios (game.html ajPrint)
window.client.printImage(event.args[0]);
}
else if (event.channel === "openPage") {
// main.js opens http and https addresses only
window.client.openPage(String(event.args[0]));