🧑‍💻 Add a browse flag to simulate branded-only

Committed, as it’s helful for initial QA and client testing. Will be removed in the future
This commit is contained in:
Philipp Stracker 2025-03-24 16:09:31 +01:00
parent 10e5588e06
commit 9ec98fe5f8
No known key found for this signature in database

View file

@ -43,6 +43,8 @@ export const features = ( state ) => {
export const wooSettings = ( state ) => {
const settings = getState( state ).wooSettings || EMPTY_OBJ;
const simulateBrandedOnly = localStorage.getItem( 'simulate-branded-only' );
/**
* The "branded only experience" is determined based on the installation path.
*
@ -52,6 +54,7 @@ export const wooSettings = ( state ) => {
* @type {boolean}
*/
const ownBrandOnly =
'true' === simulateBrandedOnly || // For development and testing. Remove this eventually!
settings.installationPath === 'core-profile' ||
settings.installationPath === 'payment-settings';