-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zh-CN: create notifications.NotificationOptions
#25077
Conversation
fix typo
fix typo
Preview URLs Flaws (13)URL:
External URLs (1)URL:
(comment last updated: 2024-12-23 07:36:24) |
files/zh-cn/mozilla/add-ons/webextensions/api/notifications/notificationoptions/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/notifications/notificationoptions/index.md
Outdated
Show resolved
Hide resolved
- `type` | ||
- : {{WebExtAPIRef("notifications.TemplateType")}}。你所希望的通知类型。根据你的选择,某些其他属性可能是必需的或者是不允许的。 | ||
- `message` | ||
- : `string`,通知的正文内容。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
类型后面的标点不统一,有逗号、有句号,还有冒号
|
||
- `imageUrl` | ||
|
||
- : `string`,指向通知中显示的图像的 URL。URL 可以是:data URL、blob URL、http 或 https URL,或者是扩展内的文件的[相对 URL](/zh-CN/docs/Mozilla/Add-ons/WebExtensions/Chrome_incompatibilities#relative_urls)。使用 SVG 图像时,请确保图像包含高度和宽度属性,例如 `<svg width="96" height="96"…`。否则,图像可能无法显示。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文文档引用的小节不存在,中文的也不存在(即使翻译片段值)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文文档的broken url删漏了
files/zh-cn/mozilla/add-ons/webextensions/api/notifications/notificationoptions/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: A1lo <[email protected]>
No description provided.