1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Support Swing browser

fixes #248
This commit is contained in:
Denis Demchenko 2018-09-09 15:07:40 +03:00
parent ace0ce17ea
commit 3489f9d374
2 changed files with 30 additions and 0 deletions

View File

@ -124,6 +124,21 @@ const browsersList = [
return browser;
},
},
{
test: [/swing/i],
describe(ua) {
const browser = {
name: 'Swing',
};
const version = getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, ua) || getFirstMatch(commonVersionIdentifier, ua);
if (version) {
browser.version = version;
}
return browser;
},
},
{
test: [/coast/i],
describe(ua) {

View File

@ -2444,3 +2444,18 @@
type: "tablet"
engine:
name: "Blink"
Swing:
-
ua: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.105 Safari/537.36 Swing/4.2.4.0"
spec:
browser:
name: "Swing"
version: "4.2.4.0"
os:
name: "Windows"
version: "NT 10.0"
versionName: "10"
platform:
type: "desktop"
engine:
name: "Blink"