Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem that isWebkit be true on Chrome #629

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 18, 2020

  1. Fix problem that isWebkit be true on Chrome

    The user agent on Chrome also contains `AppleWebKit`。 Therefore the origin judgement condition will treat Chrome as "WebKit inside a native macOS app".
    
    Here is the user agent string of Chrome 80 for Windows 10:
    
    ```
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36
    ```
    E-train-Liu committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    b1a1538 View commit details
    Browse the repository at this point in the history