mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-06-02 04:44:30 +00:00
Ensure watch history preference actually works.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user