Skip to content

Commit 5aa700d

Browse files
committed
feat(adblockify): enable premium flag for pip
1 parent 41cf5f5 commit 5aa700d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

adblock/adblock.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,16 @@ const retryCounter = (slotId, action) => {
204204
expFeatures.enableInAppMessaging.value = false;
205205
if (typeof expFeatures?.hideUpgradeCTA?.value !== "undefined")
206206
expFeatures.hideUpgradeCTA.value = true;
207+
if (typeof expFeatures?.enablePremiumUserForMiniPlayer?.value !== "undefined")
208+
expFeatures.enablePremiumUserForMiniPlayer.value = true;
207209
// if (typeof expFeatures?.enableSmartShuffle?.value !== "undefined") expFeatures.enableSmartShuffle.value = false;
208210
localStorage.setItem("spicetify-exp-features", JSON.stringify(expFeatures));
209211
const overrides = {
210212
enableEsperantoMigration: true,
211213
enableInAppMessaging: false,
212214
hideUpgradeCTA: true,
213215
//enableSmartShuffle: false,
216+
enablePremiumUserForMiniPlayer: true,
214217
};
215218
const map = createInternalMap(overrides);
216219
RemoteConfigResolver.value.setOverrides(map);

adblock/adblock.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ const retryCounter = (slotId: string, action: "increment" | "clear" | "get") =>
258258
if (typeof expFeatures?.enableEsperantoMigration?.value !== "undefined") expFeatures.enableEsperantoMigration.value = true;
259259
if (typeof expFeatures?.enableInAppMessaging?.value !== "undefined") expFeatures.enableInAppMessaging.value = false;
260260
if (typeof expFeatures?.hideUpgradeCTA?.value !== "undefined") expFeatures.hideUpgradeCTA.value = true;
261+
if (typeof expFeatures?.enablePremiumUserForMiniPlayer?.value !== "undefined") expFeatures.enablePremiumUserForMiniPlayer.value = true;
261262
// if (typeof expFeatures?.enableSmartShuffle?.value !== "undefined") expFeatures.enableSmartShuffle.value = false;
262263
localStorage.setItem("spicetify-exp-features", JSON.stringify(expFeatures));
263264

@@ -266,6 +267,7 @@ const retryCounter = (slotId: string, action: "increment" | "clear" | "get") =>
266267
enableInAppMessaging: false,
267268
hideUpgradeCTA: true,
268269
//enableSmartShuffle: false,
270+
enablePremiumUserForMiniPlayer: true,
269271
};
270272
const map = createInternalMap(overrides);
271273
RemoteConfigResolver.value.setOverrides(map);

0 commit comments

Comments
 (0)