Fix NPE check

closes #131
This commit is contained in:
FireMasterK
2021-04-21 19:08:50 +05:30
parent 79e2680c18
commit a082b508eb
2 changed files with 2 additions and 2 deletions

View File

@@ -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"]')),
);