aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMikhail Shabarov <61410877+mshabarov@users.noreply.github.com>2021-09-28 11:01:19 +0300
committerGitHub <noreply@github.com>2021-09-28 11:01:19 +0300
commitc982b1c531b7367ed43976a87be3818e3eeb8e79 (patch)
tree60a3c5ab9f638be5079a9c6e792841b8d536aa6c /server
parent2d30ee97f19e1ae956a67afeb0e41f0ee6d08de8 (diff)
downloadvaadin-framework-c982b1c531b7367ed43976a87be3818e3eeb8e79.tar.gz
vaadin-framework-c982b1c531b7367ed43976a87be3818e3eeb8e79.zip
fix: Add MPR UI id request parameter (#12412)
* fix: Add MPR UI id request parameter Related-to https://github.com/vaadin/multiplatform-runtime/issues/85 * test: Remove redundant non-empty param test * test: Remove leftovers * fix: Init window.mprUiId earlier than window.vaadin * Add missing '='
Diffstat (limited to 'server')
-rw-r--r--server/src/main/resources/VAADIN/vaadinBootstrap.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/main/resources/VAADIN/vaadinBootstrap.js b/server/src/main/resources/VAADIN/vaadinBootstrap.js
index a6830f434b..82e7482216 100644
--- a/server/src/main/resources/VAADIN/vaadinBootstrap.js
+++ b/server/src/main/resources/VAADIN/vaadinBootstrap.js
@@ -365,6 +365,12 @@
params += '&v-wn=' + encodeURIComponent(window.name);
}
+ // This parameter is used in multiplatform-runtime as a key for
+ // storing the MPR UI content in the session
+ if (window.mprUiId) {
+ params += '&v-mui=' + encodeURIComponent(window.mprUiId);
+ }
+
// Detect touch device support
var supportsTouch = false;
try {