summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/vaadinBootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/VAADIN/vaadinBootstrap.js')
-rw-r--r--WebContent/VAADIN/vaadinBootstrap.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js
index f8eedb8fd1..6adcb86c99 100644
--- a/WebContent/VAADIN/vaadinBootstrap.js
+++ b/WebContent/VAADIN/vaadinBootstrap.js
@@ -72,6 +72,14 @@
throw "Application " + appId + " already initialized";
}
log("init application", appId, config);
+
+ var testbenchId = appId.replace(/-\d+$/, '');
+ window.vaadin.clients[testbenchId] = {
+ isActive: function() {
+ return true;
+ }
+ }
+
var getConfig = function(name) {
var value = config[name];
if (value === undefined) {
@@ -176,6 +184,7 @@
return app;
},
+ clients: {},
getApp: function(appId) {
var app = apps[appId];
return app;