mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-04-04 14:56:58 +00:00
Add support for client-side watch history. (#370)
* Add support for client-side watch history. * Update watched videos more often.
This commit is contained in:
@@ -44,10 +44,14 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.fetchFeed().then(videos => (this.videos = videos));
|
||||
this.fetchFeed().then(videos => {
|
||||
this.videos = videos;
|
||||
this.updateWatched(this.videos);
|
||||
});
|
||||
},
|
||||
activated() {
|
||||
document.title = "Feed - Piped";
|
||||
if (this.videos.length > 0) this.updateWatched(this.videos);
|
||||
},
|
||||
methods: {
|
||||
async fetchFeed() {
|
||||
|
||||
Reference in New Issue
Block a user