Stop clearing the location hash for tw-browser-refresh

print-window-tiddler
Jermolene 2014-08-26 14:19:12 +01:00
rodzic ba087c96c2
commit e47852cb14
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -51,7 +51,6 @@ exports.startup = function() {
},false)
// Listen for the tw-browser-refresh message
$tw.rootWidget.addEventListener("tw-browser-refresh",function(event) {
window.location.hash = "";
window.location.reload(true);
});
// Listen for the tw-home message

Wyświetl plik

@ -1,9 +1,9 @@
created: 20140819110529062
modified: 20140819110529062
modified: 20140826110529062
tags: message
title: WidgetMessage: tw-browser-refresh
type: text/vnd.tiddlywiki
The `tw-browser-refresh` message removs any [[permalink|PermaLinks]] from the browser address bar and refreshes the page, causing the re-display of the [[$:/DefaultTiddlers]], and re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object.
The `tw-browser-refresh` message refreshes the page, causing the re-initialisation of any plugin tiddlers. It does not require any properties on the `event` object.
The refresh message is usually generated with the ButtonWidget and is handled by the core.