diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index 86c231a..7382b5e 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -40,7 +40,13 @@ @@ -67,38 +73,22 @@ export default { }), mounted() { setTimeout(() => { - // Chrome < 70 + // Chrome < 70 or FF < 60 if ( - window.navigator.userAgent.indexOf("Chrome") > -1 && - window.navigator.userAgent.indexOf("Edge") === -1 + (this.$ua._parsed.name == "Chrome" && + parseInt(this.$ua._parsed.version.slice(0, 2)) < 70) || + (this.$ua._parsed.name == "Firefox" && + parseInt(this.$ua._parsed.version.slice(0, 2)) < 60) ) { - let chrome = window.navigator.userAgent.match(/Chrome\/(\d+)/); - let chromeVersion = chrome ? chrome[1] : 0; - if (chromeVersion < 70) { - this.alert.html = `${this.$ua._parsed.name} ${this.$ua._parsed.version} is not supported. Consider updating to the latest version.`; - this.alert.show = true; - } - } - - // FF < 60 - if (window.navigator.userAgent.indexOf("Firefox") > -1) { - let firefox = window.navigator.userAgent.match(/Firefox\/(\d+)/); - let firefoxVersion = firefox ? firefox[1] : 0; - if (firefoxVersion < 60) { - this.alert.html = `${this.$ua._parsed.name} ${this.$ua._parsed.version} is not supported. Consider updating to the latest version.`; - this.alert.show = true; - } - } - - // IE - if (window.navigator.userAgent.indexOf("MSIE") > -1) { - this.alert.html = `Looks like you're using Internet Explorer. Stop it, get some help.`; + this.alert.html = ` + ${this.$ua._parsed.name} ${this.$ua._parsed.version.slice(0, 2)} + is not supported. Consider upgrading to the latest version.`; this.alert.show = true; } // Win7 if (window.navigator.userAgent.indexOf("Windows NT 6.1") > -1) { - this.alert.html = `Windows 7 is not supported. Consider upgrading Windows, or installing Linux.`; + this.alert.html = `Windows 7 is not supported. Consider upgrading Windows, or installing Linux.`; this.alert.show = true; } }, 1000); diff --git a/Website/pages/docs/fetching.vue b/Website/pages/docs/fetching.vue index 96eac2e..f3d9d1b 100644 --- a/Website/pages/docs/fetching.vue +++ b/Website/pages/docs/fetching.vue @@ -3,7 +3,9 @@

Basic Fetching Tutorial

Example to get votes of a given YouTube video ID: - kxOuG8jMIgI + kxOuG8jMIgI

Example Request:

Request URL: @@ -45,8 +47,12 @@
- An invalid YouTube ID will return status code 404 "Not Found".
- An incorrectly formatted YouTube ID will return 400 "Bad Request". + An invalid YouTube ID will return status code 404 "Not Found".
+ An incorrectly formatted YouTube ID will return 400 "Bad + Request".
diff --git a/Website/pages/help.vue b/Website/pages/help.vue index e08fabb..82ca645 100644 --- a/Website/pages/help.vue +++ b/Website/pages/help.vue @@ -1,5 +1,8 @@