From e71fa8c49767497f16a178d7130402be22cf3009 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Thu, 1 Dec 2011 23:00:49 +0200 Subject: Pass window.name back to the browser to help detecting browser refresh --- WebContent/VAADIN/vaadinBootstrap.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'WebContent') diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js index b61c10dcf7..9a7a9d3569 100644 --- a/WebContent/VAADIN/vaadinBootstrap.js +++ b/WebContent/VAADIN/vaadinBootstrap.js @@ -88,6 +88,9 @@ url += '&rootId=' + getConfig('rootId'); // Uri fragment url += '&f=' + encodeURIComponent(location.hash); + if (window.name) { + url += '&wn=' + encodeURIComponent(window.name); + } // Timestamp to avoid caching url += '&' + (new Date()).getTime(); @@ -126,6 +129,11 @@ }; apps[appId] = app; + if (!window.name) { + var rootId = getConfig('rootId'); + window.name = appId + '-' + rootId; + } + var bootstrapApp = function(mayDefer) { var themeUri = getConfig('themeUri'); if (themeUri) { -- cgit v1.2.3