From 2b749fa4f3d9e79604d3418c279764e81671abd6 Mon Sep 17 00:00:00 2001 From: Guille Date: Thu, 27 Jun 2019 11:16:04 +0300 Subject: [PATCH] Prefer Flow development mode over localhost check After 5673bd32877d8aa0799d87af80f3ef5980e075af `Vaadin.developmentMode` is always true for localhost even if flow is running in production mode. --- vaadin-development-mode-detector.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vaadin-development-mode-detector.html b/vaadin-development-mode-detector.html index abe9ece..cb2eb95 100644 --- a/vaadin-development-mode-detector.html +++ b/vaadin-development-mode-detector.html @@ -21,14 +21,14 @@ return true; } - if (!isLocalhost()) { - return false; - } - if (FlowClients) { return !isFlowProductionMode(); } + if (!isLocalhost()) { + return false; + } + return !isMinified(); } catch (e) { // Some error in this code, assume production so no further actions will be taken