From ac97ae3a82c13212e40a1e31773587c0c65ceb91 Mon Sep 17 00:00:00 2001 From: Guille Date: Thu, 27 Jun 2019 14:28:16 +0300 Subject: [PATCH] Revert "Prefer Flow development mode over localhost check (#26)" This reverts commit 4ff614fa66556f136c3b517bbc12478cbd72917d. --- 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 cb2eb95..abe9ece 100644 --- a/vaadin-development-mode-detector.html +++ b/vaadin-development-mode-detector.html @@ -21,14 +21,14 @@ return true; } - if (FlowClients) { - return !isFlowProductionMode(); - } - if (!isLocalhost()) { return false; } + if (FlowClients) { + return !isFlowProductionMode(); + } + return !isMinified(); } catch (e) { // Some error in this code, assume production so no further actions will be taken