Issue: Wallet connections working in Chrome but failing in Edge, Safari, and mobile browsers with error:
`
Error: No wallet detected!
`
Affected Browsers:
window.ethereum and window.solana asynchronouslyFile: universal-wallet-connect.js
`javascript
`Benefits:
File: universal-wallet-connect.js
`javascript
// Backup try on full page load + 1000ms
window.addEventListener('load', async function() {
if (window.walletConnector.detectedWallets.length === 0) {
await new Promise(resolve => setTimeout(resolve, 1000));
await window.walletConnector.detectWallets();
}
});
`
Benefits:
File: index.html
Added help banner with retry button:
`html
`Benefits:
File: index.html
`javascript
if (isMobile) {
// Mobile-specific guidance
throw new Error(
'📱 MOBILE USERS:\n' +
'1. Install Phantom or MetaMask app\n' +
'2. Open this site INSIDE the wallet app\n' +
'⚠️ Safari/Chrome cannot access wallets on mobile!'
);
} else {
// Desktop-specific guidance
throw new Error(
'💻 DESKTOP USERS:\n' +
'1. Install wallet extension\n' +
'2. Enable in browser settings\n' +
'3. Refresh page'
);
}
`
Benefits:
1. Install Extension:
2. Enable Extension: - Click puzzle piece (🧩) in toolbar - Find Phantom/MetaMask - Click "eye" icon to enable - Pin to toolbar
3. Test Connection: - Go to https://barbrickdesign.github.io - Wait 2-3 seconds for page to fully load - Look for help banner if no wallet detected - Click "🔄 Retry Detection" if needed - Click "CONNECT WALLET"
Expected Console Output:
`
🔗 Universal Wallet Connector loading...
🔍 Scanning for wallets... (attempt 1/3)
⏳ No wallets found, retrying in 100ms...
🔍 Scanning for wallets... (attempt 2/3)
✅ Phantom detected
✅ Total wallets found: 1
`
⚠️ IMPORTANT: Safari has limited Web3 extension support
1. Try Extension: - Phantom has Safari extension (limited) - MetaMask may not work on Safari
2. Alternative Solution: - Use Chrome or Edge instead - Or access via Phantom mobile app browser
3. Test: - If extension installed, same as Edge steps - If not detected, use mobile app instead
❌ WILL NOT WORK - Extensions not supported on iOS
✅ SOLUTION:
1. Install Phantom or MetaMask App: - Open App Store - Search "Phantom Wallet" or "MetaMask" - Install the app
2. Access Site Inside App:
- Open Phantom/MetaMask app
- Look for browser icon (usually at bottom)
- Navigate to: barbrickdesign.github.io
- Connection will work automatically
3. Why This Works: - Wallet app's browser has direct access to wallet API - No extension needed - Full functionality available
Same as iPhone - MUST use wallet app's built-in browser
1. Install Phantom or MetaMask app from Google Play 2. Use browser inside the app 3. Navigate to barbrickdesign.github.io
Should work without issues - this was your baseline
1. Install extension 2. Refresh page 3. Connect normally
Look for these messages:
✅ Good Signs:
`
🔗 Universal Wallet Connector loading...
✅ Phantom detected
✅ Total wallets found: 1
`
❌ Bad Signs:
`
⚠️ No wallets detected after all retries
window.solana: false
window.ethereum: false
`
1. Click puzzle piece (🧩) in browser toolbar 2. Verify extension is installed 3. Verify extension is enabled (not just installed) 4. Click extension icon - should open wallet 5. Make sure wallet is unlocked
1. Look for orange help banner on page 2. Click "🔄 Retry Detection" 3. Wait for scanning to complete 4. If wallets found, click "CONNECT WALLET"
Browser Compatibility Ranking:
1. ✅✅✅ Chrome - Best support 2. ✅✅ Edge - Good support (may need retry) 3. ✅✅ Brave - Good support 4. ✅ Firefox - Works but slower 5. ⚠️ Safari - Limited support 6. ❌ Mobile Safari - Not supported
Desktop - No Extensions:
Mobile - Any Browser:
`
`1. ✅ universal-wallet-connect.js
2. ✅ index.html
- Added help banner UI
- Added retry button
- Added platform-specific errors
- Added help dialog
- [x] Retry logic implemented
Desktop:
Mobile:
---
Status: ✅ FIXED FOR ALL BROWSERS