소스 검색

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…
취소
저장