Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/js/webapp/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,12 @@ window.getPhantomSDK = getPhantomSDK;
// ====================== LOAD LISTENER - SINGLE SOURCE OF TRUTH ======================
window.addEventListener('load', async () => {
const urlParams = new URLSearchParams(window.location.search);

await getPhantomSDK();

// 1. Handle OAuth Handshake
if (urlParams.get('code')) {
console.log("⚠️ OAuth callback detected — Initializing SDK handshake");
await getPhantomSDK();
return; // The 'connect' listener in getPhantomSDK will handle the UI update
}

Expand Down
Loading