socket
socket copied to clipboard
Don't load init.js when redirecting
The socket:// protocol in the web view (unfortunately) doesn't support arbitrary headers and http codes, so we can't redirect at the http level, so instead we return an html page with an http-equiv html header element to perform the redirect.
https://github.com/socketsupply/socket/blob/d5074ffa60d21c7c13ffe680db2c4ef1a37ddde0/src/ipc/bridge.cc#L1786-L1790
This works great, but we still attempt to load an init.js on the page that performs the redirect. This doesn't break anything, however it can result in loading errors in the console. These errors don't affect anything, but they do add noise and confusion.
If possible, we should avoid loading init.js on these redirect page.