diff --git a/package.json b/package.json index 1522ccd8..3c8d22ff 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "serve": "vite", "build": "vite build", "preview": "vite preview", - "lint": "eslint --fix --color --ignore-path .gitignore ." + "lint": "eslint --fix --color --ignore-path .gitignore --ext .js,.vue ." }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.36", diff --git a/src/App.vue b/src/App.vue index 54c45b0c..62504db2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,7 +40,7 @@ export default { if (this.getPreferenceBoolean("watchHistory", false)) if ("indexedDB" in window) { const request = indexedDB.open("piped-db", 1); - request.onupgradeneeded = function() { + request.onupgradeneeded = function () { const db = request.result; console.log("Upgrading object store."); if (!db.objectStoreNames.contains("watch_history")) { @@ -56,7 +56,7 @@ export default { const App = this; - (async function() { + (async function () { const locale = App.getPreferenceString("hl", App.defaultLangage); if (locale !== App.TimeAgoConfig.locale) { const localeTime = await import("javascript-time-ago/locale/" + locale + ".json").then( diff --git a/src/components/Player.vue b/src/components/Player.vue index 28c3f6cd..9592293b 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -193,7 +193,7 @@ export default { var tx = window.db.transaction("watch_history", "readonly"); var store = tx.objectStore("watch_history"); var request = store.get(this.video.id); - request.onsuccess = function(event) { + request.onsuccess = function (event) { var video = event.target.result; if (video && video.currentTime) { videoEl.currentTime = video.currentTime; @@ -477,7 +477,7 @@ export default { var tx = window.db.transaction("watch_history", "readwrite"); var store = tx.objectStore("watch_history"); var request = store.get(this.video.id); - request.onsuccess = function(event) { + request.onsuccess = function (event) { var video = event.target.result; if (video) { video.currentTime = time; diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 4a880cfe..ad4ab8a1 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -199,7 +199,7 @@ export default { var tx = window.db.transaction("watch_history", "readwrite"); var store = tx.objectStore("watch_history"); var request = store.get(videoId); - request.onsuccess = function(event) { + request.onsuccess = function (event) { var video = event.target.result; if (video) { video.watchedAt = Date.now();