gmail.js: There are errors if switch to new GmailUI
extension.js:1072 Uncaught Cannot register the xhr watcher as mail.google.com is not fully loaded yet. Please wrap your code in gmail.observe.on("load")
| Gmail_.api.tools.xhr_watcher | @ | extension.js:1072 |
|---|---|---|
| Gmail_.api.observe.bind | @ | extension.js:1165 |
| Gmail_.api.observe.on | @ | extension.js:1190 |
| 3.gmail-js | @ | extension.js:13405 |
| o | @ | extension.js:1 |
| r | @ | extension.js:1 |
| (anonymous) | @ | extension.js:1 |
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19
This is not a fault in gmailjs and the example repo. These repos are not “learn JavaScript” support forums.
Knowledge about JavaScript is a prerequisite to use this library.
You need to completely disregard gmailjs, take a break, read up on how modern day JS development with script-bundling (browserify, webpack, etc) works.
When you understand that, using gmailjs will be easy.