Quick membership override in debug mode
This commit is contained in:
parent
dcb19a9f48
commit
db38cc597f
1 changed files with 7 additions and 0 deletions
|
@ -115,6 +115,13 @@ export const selectOdyseeMembershipIsPremiumPlus = (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);
|
||||
return Boolean(membershipName);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue