- Implemented Docker container scanning and periodic updates in the Server initialization. - Added new RPC endpoints for managing Docker containers, including start, stop, and restart functionalities. - Updated the API to handle package management for Docker-based applications. - Improved environment variable handling for user-specific configurations in Podman and Docker clients. - Enhanced the development startup script to include Docker container management and provide clearer instructions for full stack setup.
1.6 KiB
1.6 KiB
BROWSER CACHE ISSUE - QUICK FIX
Problem
The browser has cached the OLD JavaScript that still tries to use window.open() before checking for Bitcoin.
Solution
Option 1: Hard Refresh (Fastest)
- Open http://localhost:8100
- Press Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows/Linux)
- This forces the browser to reload all JavaScript
- Navigate to My Apps
- Click Launch on Bitcoin Core
- ✅ Should now open the custom UI!
Option 2: Clear Cache (Most Thorough)
- Open DevTools (F12)
- Right-click the refresh button
- Select "Empty Cache and Hard Reload"
- Or: Go to Application > Clear Storage > Clear site data
Option 3: Incognito/Private Window
- Open a new incognito/private window
- Go to http://localhost:8100
- Test the launch button
- Will use fresh JavaScript without cache
What Changed
OLD CODE (line 192 in error):
function launchApp(id: string) {
const lanAddress = pkg?.installed?.['interface-addresses']?.main?.['lan-address']
if (lanAddress) {
window.open(lanAddress, '_blank') // <-- Error here with 18443-18444
return
}
}
NEW CODE (current):
function launchApp(id: string) {
// Special handling for Bitcoin Core - open custom UI
if (id === 'bitcoin') {
router.push('/dashboard/apps/bitcoin-core') // <-- Opens custom UI
return
}
// ... rest of code
}
Verification
After hard refresh, check browser console:
- ✅ No more "Unable to open a window with invalid URL" error
- ✅ Clicking Launch routes to
/dashboard/apps/bitcoin-core - ✅ Beautiful glassmorphism UI appears
The code is correct. Just need to clear browser cache!