From 4ff614fa66556f136c3b517bbc12478cbd72917d Mon Sep 17 00:00:00 2001 From: Guille Date: Thu, 27 Jun 2019 11:43:09 +0300 Subject: [PATCH] Prefer Flow development mode over localhost check (#26) 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