Skip to content

Commit

Permalink
Merge pull request #123 from HeyMehedi/master
Browse files Browse the repository at this point in the history
Fix Connect to Single Template Redirection
  • Loading branch information
HeyMehedi authored Oct 23, 2024
2 parents 3c7c3ee + d4d69ce commit 264312a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Binary file modified .wordpress-org/banner-1544x500.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/banner-772x250.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions app/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,13 @@ public function hide_admin_notices() {
if (typeof BroadcastChannel === 'function') {
const _lmnLoginBroadCastChannel = new BroadcastChannel('lmn_login_broadcast_channel');
_lmnLoginBroadCastChannel.onmessage = (event) => {
console.log('event', event);
if (event.data?.action === 'redirect') {
const url = event.data?.href;
_lmnLoginBroadCastChannel.close();
window.location = url;
window.location.reload(true);
setTimeout(() => {
window.location.reload(true);
_lmnLoginBroadCastChannel.close();
}, 1000);
}
};
}
Expand Down

0 comments on commit 264312a

Please sign in to comment.