即使在上下文中i' m时,请致电homepagetrigger
我的清单中有一个:
"addOns": {
"common": {
"homepageTrigger": {
"runFunction": "handleHomePageStart",
"enabled": true
},
"name": "MyApp",
"openLinkUrlPrefixes": [
"https://www.myApp.com/",
],
"useLocaleFromApp": true
},
"gmail": {
"contextualTriggers": [
{
"unconditional": {},
"onTriggerFunction": "handleStart"
}
],
"composeTrigger": {
"selectActions": [
{
"text": "compose method",
"runFunction": "handleStartCompose"
}
],
"draftAccess": "METADATA"
}
},
...
当我不在上下文中时,将显示主页,并在执行中看到该方法的调用(handlehomePagestart
)。但是,当我单击电子邮件时,主页和上下文触发器都会被触发,因为我可以看到列表中的handlehomePagestart
和handlestart
executions executions handlestart handlestart。这是设计还是我的应用程序有一些缺陷?
提前致谢!
I have this in my manifest:
"addOns": {
"common": {
"homepageTrigger": {
"runFunction": "handleHomePageStart",
"enabled": true
},
"name": "MyApp",
"openLinkUrlPrefixes": [
"https://www.myApp.com/",
],
"useLocaleFromApp": true
},
"gmail": {
"contextualTriggers": [
{
"unconditional": {},
"onTriggerFunction": "handleStart"
}
],
"composeTrigger": {
"selectActions": [
{
"text": "compose method",
"runFunction": "handleStartCompose"
}
],
"draftAccess": "METADATA"
}
},
...
When I'm out of context, the homepage is displayed and I see in the executions a call for that method(handleHomePageStart
). However, when I click on an email, both the homePage and context triggers are fired, as I can see both handleHomePageStart
and handleStart
executions in the list. Is this by design or my app has some flaw on it?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论