KartikTalwar / gmail.js

Gmail JavaScript API
MIT License
3.75k stars 457 forks source link

Observe for send and scheduled send stopped working, recipient change does not working #798

Open huksley opened 3 hours ago

huksley commented 3 hours ago

Looks like new changes Gmail broke many functionality in gmail-js.

For example this.gmail.observe.before("send_message", () => handler()) stopped working.

I can see the following messages in the console:

gmail.js:688 Can't find composeRoot for [object Object]
gmail.js:688 api.dom.compose called with invalid element
huksley commented 2 hours ago

The initial culprit that the approach similar to extensionInjector.js are no longer supported.

Gmail started sending Content-Security-Policy headers which disallows loading subsequent scripts. But the initial content script are injected okay.

Screenshot 2024-10-22 at 10 03 57



huksley commented 2 hours ago

api.get.user_email not working