mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
parent
79e2680c18
commit
a082b508eb
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ export default {
|
|||
this.selectedInstance = localStorage.getItem("instance") || "https://pipedapi.kavin.rocks";
|
||||
|
||||
this.sponsorBlock = localStorage.getItem("sponsorblock") || true;
|
||||
if (localStorage.getItem("selectedSkip")) {
|
||||
if (localStorage.getItem("selectedSkip") !== null) {
|
||||
var skipList = localStorage.getItem("selectedSkip").split(",");
|
||||
this.skipSponsor = this.skipIntro = this.skipOutro = this.skipInteraction = this.skipSelfPromo = this.skipMusicOffTopic = false;
|
||||
skipList.forEach(skip => {
|
||||
|
|
|
@ -93,7 +93,7 @@ export default {
|
|||
"/sponsors/" +
|
||||
this.$route.query.v +
|
||||
"?category=" +
|
||||
(localStorage && localStorage.getItem("selectedSkip")
|
||||
(localStorage && localStorage.getItem("selectedSkip") !== null
|
||||
? encodeURIComponent('["' + localStorage.getItem("selectedSkip").replace(",", '","') + '"]')
|
||||
: encodeURIComponent('["sponsor", "interaction", "selfpromo", "music_offtopic"]')),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue