diff options
author | Leif Åstrand <leif@vaadin.com> | 2011-12-01 23:00:49 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2011-12-01 23:00:49 +0200 |
commit | e71fa8c49767497f16a178d7130402be22cf3009 (patch) | |
tree | 43e4b7f91481b8270a3192b5e27bb7407f772c4b /WebContent/VAADIN/vaadinBootstrap.js | |
parent | f2598f3b1f61bb885c5c10a52e50446861b16cc1 (diff) | |
download | vaadin-framework-e71fa8c49767497f16a178d7130402be22cf3009.tar.gz vaadin-framework-e71fa8c49767497f16a178d7130402be22cf3009.zip |
Pass window.name back to the browser to help detecting browser refresh
Diffstat (limited to 'WebContent/VAADIN/vaadinBootstrap.js')
-rw-r--r-- | WebContent/VAADIN/vaadinBootstrap.js | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |