Java Code Examples for com.vaadin.flow.shared.ApplicationConstants#VAADIN_PUSH_DEBUG_JS
The following examples show how to use
com.vaadin.flow.shared.ApplicationConstants#VAADIN_PUSH_DEBUG_JS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BootstrapHandler.java From flow with Apache License 2.0 | 6 votes |
protected static String getPushScript(BootstrapContext context) { VaadinRequest request = context.getRequest(); // Parameter appended to JS to bypass caches after version upgrade. String versionQueryParam = "?v=" + Version.getFullVersion(); // Load client-side dependencies for push support String pushJSPath = context.getRequest().getService() .getContextRootRelativePath(request); if (request.getService().getDeploymentConfiguration() .isProductionMode()) { pushJSPath += ApplicationConstants.VAADIN_PUSH_JS; } else { pushJSPath += ApplicationConstants.VAADIN_PUSH_DEBUG_JS; } pushJSPath += versionQueryParam; return pushJSPath; }
Example 2
Source File: AtmospherePushConnection.java From flow with Apache License 2.0 | 5 votes |
private String getVersionedPushJs() { String pushJs; if (registry.getApplicationConfiguration().isProductionMode()) { pushJs = ApplicationConstants.VAADIN_PUSH_JS; } else { pushJs = ApplicationConstants.VAADIN_PUSH_DEBUG_JS; } return pushJs; }