瀏覽代碼

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 7 年之前
父節點
當前提交
8b4f0ed8a8
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      client/src/main/resources/com/vaadin/Vaadin.gwt.xml

+ 3
- 0
client/src/main/resources/com/vaadin/Vaadin.gwt.xml 查看文件

@@ -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 -->

Loading…
取消
儲存