Closed NeverDecaf closed 3 years ago
Came here to ask about this. Is this a Chromium bug, or is there a chance it's fixable on this project's end?
A workaround should be possible, but will most likely require some hack which may be messy, I will look into it.
Here is a quick description of the method I've used for future reference:
chrome-extension://edfpalahildnikdjdnmmoekoncglnblh/manifest.json
. (manifest.json must be added to web_accessible_resources
in manifest.)parent.postMessage
. The PWA waits for this message and if it isn't received the iframe is reloaded (once only).
If you try to open the PWA directly from a shortcut while chrome(ium) is not running, the extension will not be loaded and therefore the PWA will fail to access discord.com. This causes the extension to be loaded, and refreshing the PWA (with ctrl+r) will then cause it to load correctly.