Skip to content

Commit

Permalink
🐛 Try to patch MetaMask UX w/o true disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
davisshaver committed May 5, 2024
1 parent 576e88c commit e293882
Show file tree
Hide file tree
Showing 6 changed files with 10,985 additions and 60,822 deletions.
5 changes: 4 additions & 1 deletion blocks/login-block/frontend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ if ( loginBlocks ) {
}
onLogout={ () => {
const logoutURL = new URL( LOGOUT_URL );
const currentURL = new URL( window.location.href );
// Add a 'wp-rainbow-logout' query parameter to the current URL.
currentURL.searchParams.append( 'wp-rainbow-logout', 'true' );

Check failure on line 33 in blocks/login-block/frontend.jsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·'wp-rainbow-logout',·'true'·` with `⏎↹↹↹↹↹↹'wp-rainbow-logout',⏎↹↹↹↹↹↹'true'⏎↹↹↹↹↹`
logoutURL.searchParams.append(
'redirect_to',
encodeURI( window.location.href )
encodeURI( currentURL )
);
window.location = logoutURL.toString();
} }
Expand Down
Loading

0 comments on commit e293882

Please sign in to comment.