mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
🧑💻 Add a temporary branded-only simulation mode
This commit is contained in:
parent
62e9a5e4ec
commit
7652bc8fea
3 changed files with 23 additions and 1 deletions
|
@ -44,7 +44,10 @@ export const wooSettings = ( state ) => {
|
|||
const settings = getState( state ).wooSettings || EMPTY_OBJ;
|
||||
|
||||
// For development and testing. Remove this eventually!
|
||||
const simulateBrandedOnly = localStorage.getItem( 'simulate-branded-only' );
|
||||
const simulateBrandedOnly = document.cookie
|
||||
.split( '; ' )
|
||||
.find( ( row ) => row.startsWith( 'simulate-branded-only=' ) )
|
||||
?.split( '=' )[ 1 ];
|
||||
|
||||
/**
|
||||
* The "own-brand-only" experience is determined on server-side, based on the installation path.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue