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 @@
-
+
mdi-close-circle-outline
@@ -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 @@
-
+
Troubleshooting
-
@@ -10,8 +13,8 @@
right now
-
- Try removing extension and installing it again, then restarting the browser (all
- active windows, not just one tab).
+ Try removing extension and installing it again, then restarting the
+ browser (all active windows, not just one tab).
-
Make sure that this link opens:
@@ -25,8 +28,9 @@
,
you should see plain text:
- {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z", "likes":2907,
- "dislikes":215, "rating":4.725641025641026, "viewCount":28222, "deleted":false}
+ {"id":"QOFEgexls14", "dateCreated":"2021-12-15T16:54:12.250813Z",
+ "likes":2907, "dislikes":215, "rating":4.725641025641026,
+ "viewCount":28222, "deleted":false}
-
@@ -73,8 +77,8 @@
-
- Take screenshot of page with problem (i.e. youtube video page) with console
- open (press
F12) - example screenshot below.
+ Take screenshot of page with problem (i.e. youtube video page) with
+ console open (press F12) - example screenshot below.
-
- Take screenshot of extensions page of your browser with extension installed.
+ Take screenshot of extensions page of your browser with extension
+ installed.
To see extensions put this into adress bar:
about:addons for Firefox
- chrome://extensions for Chrome, Edge, Brave, Opera, Vivaldi
+ chrome://extensions for Chrome, Edge, Brave, Opera,
+ Vivaldi