Skip to content

Commit dbc01b3

Browse files
committed
remove unused bowser
1 parent 07fa54b commit dbc01b3

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"dependencies": {
2222
"@tomphttp/bare-client": "^1.1.2-beta",
23-
"bowser": "^2.11.0",
2423
"css-tree": "^2.0.4",
2524
"esotope-hammerhead": "^0.6.1",
2625
"events": "^3.3.0",

src/rewrite/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
import { openDB } from 'idb';
3636
import parsel from './parsel.js';
3737
import UVClient from '../client/index.js';
38-
import Bowser from 'bowser';
3938
import BareClient from '@tomphttp/bare-client';
4039
import EventEmitter from 'events';
4140

@@ -66,7 +65,6 @@ class Ultraviolet {
6665
this.js = new JS(this);
6766
this.parsel = parsel;
6867
this.openDB = this.constructor.openDB;
69-
this.Bowser = this.constructor.Bowser;
7068
this.client =
7169
typeof self !== 'undefined'
7270
? new UVClient(options.window || self)
@@ -213,7 +211,6 @@ class Ultraviolet {
213211
static mime = mimeTypes;
214212
static setCookie = setCookie;
215213
static openDB = openDB;
216-
static Bowser = Bowser;
217214
static BareClient = BareClient;
218215
static EventEmitter = EventEmitter;
219216
}

src/uv.sw.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
4545
* @type {InstanceType<Ultraviolet['BareClient']>}
4646
*/
4747
this.bareClient = new Ultraviolet.BareClient(this.address);
48-
this.browser = Ultraviolet.Bowser.getParser(
49-
self.navigator.userAgent
50-
).getBrowserName();
5148
}
5249
/**
5350
*

0 commit comments

Comments
 (0)