Quellcode durchsuchen

Added a fallback value for useragent (#20172)

Without this change, some browsers, like GoogleBot, don't properly render the page.
Instead of weird JS exception (and hit to server with 404) we should at least try
to render the app with all browser. As webikit/chromium based browsers are
nowadays most popular, falling back to "safari" permutation.

Change-Id: I4275110962432b2552d51715a86a8e815fe539ad
tags/7.7.1
Matti Tahvonen vor 7 Jahren
Ursprung
Commit
8b4f0ed8a8
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3
    0
      client/src/main/resources/com/vaadin/Vaadin.gwt.xml

+ 3
- 0
client/src/main/resources/com/vaadin/Vaadin.gwt.xml Datei anzeigen

@@ -60,6 +60,9 @@
<when-property-is name="user.agent" value="gecko1_8" />
</none>
</set-property>
<!-- If no proper user agent is found, at least try some, e.g. with crawlers -->
<set-property-fallback name="user.agent" value="safari" />

<!-- Fall through to this rule when the browser doesn't support pointer
event -->

Laden…
Abbrechen
Speichern