Skip to content

Commit

Permalink
Prefer Flow development mode over localhost check (#26)
Browse files Browse the repository at this point in the history
After 5673bd3 `Vaadin.developmentMode` is always true for localhost even if flow is running in production mode.
  • Loading branch information
alvarezguille authored and web-padawan committed Jun 27, 2019
1 parent 28a06b6 commit 4ff614f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vaadin-development-mode-detector.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ff614f

Please sign in to comment.