mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-19 00:00:43 +00:00
Add icon and message handler for print button
I’m inclined to think it’s not worth adding a corresponding page control button because it’ll require a lot of tiddlers for the translation etc.
This commit is contained in:
@@ -53,6 +53,10 @@ exports.startup = function() {
|
||||
$tw.rootWidget.addEventListener("tm-browser-refresh",function(event) {
|
||||
window.location.reload(true);
|
||||
});
|
||||
// Listen for the tm-print message
|
||||
$tw.rootWidget.addEventListener("tm-print",function(event) {
|
||||
window.print();
|
||||
});
|
||||
// Listen for the tm-home message
|
||||
$tw.rootWidget.addEventListener("tm-home",function(event) {
|
||||
window.location.hash = "";
|
||||
|
||||
Reference in New Issue
Block a user