google-apps-script - 你能防止上下文触发吗?
问题描述
我正在使用homepageTrigger创建一个 Google Workplace 插件,但是当我测试部署它时,只要我在收件箱中打开电子邮件,插件就会重新加载。目前, manifest.json文件中的 gmail 对象是空的(见下文),因为我不希望在打开或撰写电子邮件时运行任何上下文触发器。在浏览我的收件箱中的电子邮件时,我是否缺少一些东西来防止上下文触发器重新运行?
{
"addOns": {
"common": {
"homepageTrigger": {
"runFunction": "builder"
},
"logoUrl": "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/271/two-hearts_1f495.png",
"name": "Apps",
"layoutProperties": {
"primaryColor": "rgb(87,46,140)",
"secondaryColor": "rgb(255,193,7)"
}
},
"gmail": {}
},
"timeZone": "America/New_York",
"dependencies": {},
"exceptionLogging": "STACKDRIVER",
"runtimeVersion": "V8"
}
解决方案
推荐阅读
- php - Laravel Redis 作业没有排队
- python - 用Python抓取网页上动态元素的第二页
- apache - Apache:根据referer限制对特定子目录的访问?
- serverless-framework - 如何在 serverless.ts 文件中设置 function.events.sns.arn?
- c# - 在实体框架核心实体中使用类属性作为值
- python - 覆盖特定属性的 __isub__ 运算符
- snowflake-cloud-data-platform - CI 临时架构未删除
- javascript - Material UI 多选中的可删除芯片
- javascript - 类似于 Java Script 的媒体查询?
- sql - 如何从 SQL Server 中的 JSON 中提取值列表