Quick membership override in debug mode

This commit is contained in:
infinite-persistence 2022-03-23 10:09:38 +08:00 committed by Thomas Zarebczan
parent dcb19a9f48
commit db38cc597f

View file

@ -115,6 +115,13 @@ export const selectOdyseeMembershipIsPremiumPlus = (state) => {
}; };
export const selectHasOdyseeMembership = (state) => { export const selectHasOdyseeMembership = (state) => {
// @if process.env.NODE_ENV!='production'
const override = window.localStorage.getItem('hasMembershipOverride');
if (override) {
return override === 'true';
}
// @endif
const membershipName = selectOdyseeMembershipName(state); const membershipName = selectOdyseeMembershipName(state);
return Boolean(membershipName); return Boolean(membershipName);
}; };