mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Reload on theme change.
This commit is contained in:
parent
19fdd19aea
commit
3c9c86b2bb
1 changed files with 6 additions and 0 deletions
|
@ -178,6 +178,10 @@ export default {
|
|||
methods: {
|
||||
onChange() {
|
||||
if (localStorage) {
|
||||
var shouldReload = false;
|
||||
|
||||
if (localStorage.getItem("playerAutoPlay") !== this.autoPlayVideo) shouldReload = true;
|
||||
|
||||
localStorage.setItem("instance", this.selectedInstance);
|
||||
localStorage.setItem("sponsorblock", this.sponsorBlock);
|
||||
|
||||
|
@ -195,6 +199,8 @@ export default {
|
|||
localStorage.setItem("audioOnly", this.audioOnly);
|
||||
localStorage.setItem("quality", this.defaultQuality);
|
||||
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
||||
|
||||
if (shouldReload) window.location.reload();
|
||||
}
|
||||
},
|
||||
sslScore(url) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue