fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.25k stars 116 forks source link

Improve support for frames in Firefox #285

Closed fregante closed 1 year ago

fregante commented 1 year ago

I had initially added this piece of code, but it makes GhostText more annoying, unnecessarily:

- async function handleAction({id}) {
+ async function handleAction({id, url}) {
+   await browser.permissions.request({
+       origins: [new URL(url).origin + '/*']
+   });
fregante commented 1 year ago

Demo

https://github.com/fregante/GhostText/assets/1402241/ae8d25e5-63b6-43fd-8c08-1800c01ec63f