From e47852cb141b384ad2a9097eca795545cb5b2494 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 26 Aug 2014 14:19:12 +0100 Subject: [PATCH] Stop clearing the location hash for tw-browser-refresh --- core/modules/startup/story.js | 1 - .../tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/modules/startup/story.js b/core/modules/startup/story.js index fb23b2191..18197f367 100644 --- a/core/modules/startup/story.js +++ b/core/modules/startup/story.js @@ -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 diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid index f4eb53295..225396934 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tw-browser-refresh.tid @@ -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.