Skip to content

Commit

Permalink
Remove bowser
Browse files Browse the repository at this point in the history
  • Loading branch information
austencm committed May 8, 2023
1 parent 2b6b394 commit 84a40d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion dist/content.js

Large diffs are not rendered by default.

17 changes: 2 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,5 @@
"webpack": "^5.76.0",
"webpack-run-chrome-extension": "^0.6.0",
"zip-webpack-plugin": "^4.0.1"
},
"dependencies": {
"bowser": "^2.11.0"
}
}
5 changes: 1 addition & 4 deletions src/js/content/debug.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
/**
* Helper for generating debug info sent with bug reports
*/
import Bowser from 'bowser';
export default class Debug {
constructor() {
this.messages = [];

this.log = this.log.bind(this);
this.save = this.save.bind(this);

const parsedUserAgent = JSON.stringify(Bowser.parse(window.navigator.userAgent), null, 2);

this.log(`YouTube Auto Like v${chrome.runtime.getManifest().version}`);
this.log(new Date().toDateString());
this.log('User agent:', `\n${parsedUserAgent}`);
this.log('User agent:', `\n${window.navigator.userAgent}`);
}

log() {
Expand Down

0 comments on commit 84a40d5

Please sign in to comment.