diff options
author | Jonas Granvik <jonas@granvik.me> | 2015-01-12 12:44:34 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-01-12 18:44:36 +0000 |
commit | b412ae97a659919b928fc28a3cb6500d75d514b2 (patch) | |
tree | 3ef1ee17b26a99435a6255f1279cefe37f665735 /WebContent | |
parent | e20f6fd54ae4b350ea654807b98fe442e546d1a8 (diff) | |
download | vaadin-framework-b412ae97a659919b928fc28a3cb6500d75d514b2.tar.gz vaadin-framework-b412ae97a659919b928fc28a3cb6500d75d514b2.zip |
Add option to disable sending v-loc parameter in init request (#14460).
Change-Id: Ie17e0621400c3397dc19b386974e231b6f82944c
Diffstat (limited to 'WebContent')
-rw-r--r-- | WebContent/VAADIN/vaadinBootstrap.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js index 53b213e110..89514dbcc2 100644 --- a/WebContent/VAADIN/vaadinBootstrap.js +++ b/WebContent/VAADIN/vaadinBootstrap.js @@ -136,7 +136,7 @@ params += extraParams; } - params += '&' + vaadin.getBrowserDetailsParameters(appId); + params += '&' + vaadin.getBrowserDetailsParameters(appId, getConfig('sendUrlsAsParameters')); var r; try { @@ -270,7 +270,7 @@ ws.pendingApps = null; } }, - getBrowserDetailsParameters: function(parentElementId) { + getBrowserDetailsParameters: function(parentElementId, sendUrlsAsParameters) { // Screen height and width var params = 'v-sh=' + window.screen.height; params += '&v-sw=' + window.screen.width; @@ -327,7 +327,9 @@ } // Location - params += '&v-loc=' + encodeURIComponent(location.href); + if (sendUrlsAsParameters !== false) { + params += '&v-loc=' + encodeURIComponent(location.href); + } // Window name if (window.name) { |