mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-19 09:37:50 -05:00
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:
1 parent
b52c9194f5
commit
77be498599
3 files changed
+50
No files matched your search
@@ -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]));
|
||||
|
||||
Reference in new issue
Block a user