mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
🧑💻 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:
parent
10e5588e06
commit
9ec98fe5f8
1 changed files with 3 additions and 0 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue