diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-20 20:31:03 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-05-22 16:46:43 +0200 |
commit | 1df38d7d7d5a7e933c61f79ef737be66ab974310 (patch) | |
tree | bd39cadf72d5900bda600fa2d7b648fb7eda7fdf | |
parent | dcd1a5c758a3ba97f2ecbcda41e793ca475df15a (diff) | |
download | server-1df38d7d7d5a7e933c61f79ef737be66ab974310.tar.gz |
Add AppleWebKit UA string.
-rw-r--r-- | public/msie.html | 1 | ||||
-rw-r--r-- | server.js | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/public/msie.html b/public/msie.html index 1e4c7b3..e2c2f06 100644 --- a/public/msie.html +++ b/public/msie.html @@ -1,3 +1,4 @@ +<!DOCTYPE html> <html> <h1 style="color:brown">Internet Explorer</h1> <p>This site does not work with Internet Explorer. @@ -311,6 +311,8 @@ function parse_user_agent(req) { agent = "MSIE"; else if (user_agent.indexOf("Trident/") >= 0) agent = "MSIE"; + else if (user_agent.indexOf("AppleWebKit/") >= 0) + agent = "AppleWebKit"; if (user_agent.indexOf("Mobile") >= 0) return agent + "/M"; return agent; |