Merge pull request #490 from outloudvi/feat/user-agent-100

feat: support version 100+ on User-Agent
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2022-02-22 15:32:17 +03:00
commit db94a2cbab
1 file changed
+3 -3
+3 -3
View File
@@ -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;
}