From 4aba3b548c56bb05e7f4d914ca2cc86561eb7dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20Hyv=C3=B6nen?= Date: Fri, 27 Aug 2021 23:04:39 +0300 Subject: [PATCH] fix: not fail for missing window.Vaadin.Flow (#11669) Fixes regression caused by #11635 Fixes #11666 --- .../plugins/application-theme-plugin/theme-generator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js index 8f3d3a9e56d..346a7907901 100644 --- a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js +++ b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js @@ -260,6 +260,7 @@ function generateThemeFile(themeFolder, themeName, themeProperties, productionMo themeFile += imports.join(''); themeFile += ` window.Vaadin = window.Vaadin || {}; +window.Vaadin.Flow = window.Vaadin.Flow || {}; window.Vaadin.Flow.injectedGlobalCss = []; /**