mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-23 14:53:01 +01:00
Merge pull request #490 from outloudvi/feat/user-agent-100
feat: support version 100+ on User-Agent
This commit is contained in:
1 file changed
+3
-3
@@ -76,12 +76,12 @@ export default {
|
||||
// Chrome < 70 or FF < 60
|
||||
if (
|
||||
(this.$ua._parsed.name == "Chrome" &&
|
||||
parseInt(this.$ua._parsed.version.slice(0, 2)) < 70) ||
|
||||
parseInt(this.$ua._parsed.version.split(".")[0]) < 70) ||
|
||||
(this.$ua._parsed.name == "Firefox" &&
|
||||
parseInt(this.$ua._parsed.version.slice(0, 2)) < 60)
|
||||
parseInt(this.$ua._parsed.version.split(".")[0]) < 60)
|
||||
) {
|
||||
this.alert.html = `<b style="background: #222; border-radius: .5rem; padding: .25rem .25rem .25rem .5rem; margin: 0 .25rem;">
|
||||
${this.$ua._parsed.name} ${this.$ua._parsed.version.slice(0, 2)}
|
||||
${this.$ua._parsed.name} ${this.$ua._parsed.version.split(".")[0]}
|
||||
</b> is not supported. Consider upgrading to the latest version.`;
|
||||
this.alert.show = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user