Comments (3)
This could fix the error:
##783
from gmail.js.
That fixed it but the simpler solution was using this catch all:
if (window.trustedTypes && window.trustedTypes.createPolicy) {
window.trustedTypes.createPolicy("default", {
createHTML: (string) => string,
createScriptURL: (string) => string,
createScript: (string) => string,
});
}
from gmail.js.
That fixed it but the simpler solution was using this catch all:
if (window.trustedTypes && window.trustedTypes.createPolicy) { window.trustedTypes.createPolicy("default", { createHTML: (string) => string, createScriptURL: (string) => string, createScript: (string) => string, }); }
Thank you for that, I was having a similar issue calling add_toolbar_button()
with this error:
jquery.module.min.js:2 Uncaught TypeError: Illegal invocation
at T.fn.init.<anonymous> (jquery.module.min.js:2:44823)
at Y (jquery.module.min.js:2:6326)
at T.fn.init.html (jquery.module.min.js:2:44634)
at create_generic_toolbar_button (gmail.js:3673:16)
at Gmail.api.tools.add_toolbar_button (gmail.js:3690:16)
at extension.js:40:29
from gmail.js.
Related Issues (20)
- gmail.observe.on('view_email', () => {}) is not fired HOT 16
- Synchronous 'DOMNodeInserted' DOM Mutation Event is deprecated HOT 3
- Synchronous 'DOMSubtreeModified' DOM Mutation Event is deprecated HOT 3
- Reloading window makes the the user email undefined HOT 2
- gmail.observe.on("compose") observer returns type of "compose" when reply button is clicked HOT 6
- How to Utilize the "make_request" and "make_request_async" Methods?
- Button added to toolbar in Gmail label page shows for few seconds & gets hidden (by Gmail)
- `recipient_change` hook throws console errors when compose is closed
- Detecting attachment open from search list HOT 1
- "view_email" event fires twice HOT 1
- Gmail change for innerHTML HOT 36
- Update header before send request HOT 2
- Error in the function: gmail.tools.add_compose_button HOT 7
- Nonstop requests sent to play.google.com HOT 1
- api.get.user_email does not work with non-workspace email addresses
- GmailJS library (1.1.14) is failing to load (with error in console) HOT 1
- GmailJS method add_toolbar_button is not working HOT 3
- why this project can not be used at the server side with node? HOT 1
- Detect dark mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmail.js.