Ensure watch history preference actually works.

This commit is contained in:
Kavin
2023-01-13 13:40:12 +00:00
parent 7d4f0109d6
commit ece47821fb
4 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ export default {
},
mounted() {
(async () => {
if (window.db) {
if (window.db && this.getPreferenceBoolean("watchHistory", false)) {
var tx = window.db.transaction("watch_history", "readonly");
var store = tx.objectStore("watch_history");
const cursorRequest = store.index("watchedAt").openCursor(null, "prev");