mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Sort subs locally.
This commit is contained in:
parent
de4d8ce350
commit
8e07948e28
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,8 @@ const mixin = {
|
||||||
},
|
},
|
||||||
importSubscriptionsLocally(newChannels) {
|
importSubscriptionsLocally(newChannels) {
|
||||||
const subscriptions = this.getLocalSubscriptions().concat(newChannels);
|
const subscriptions = this.getLocalSubscriptions().concat(newChannels);
|
||||||
|
// Sort for better cache hits
|
||||||
|
subscriptions.sort();
|
||||||
localStorage.setItem("localSubscriptions"), JSON.stringify(subscriptions);
|
localStorage.setItem("localSubscriptions"), JSON.stringify(subscriptions);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue