From 33b7b774c11e71ec7114fd835136419fbfbaab37 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 11 Jan 2016 14:41:38 +0800 Subject: [PATCH] docs: Notification on Windows can use http:// icon now --- docs/tutorial/desktop-environment-integration.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/tutorial/desktop-environment-integration.md b/docs/tutorial/desktop-environment-integration.md index c5b5cd6..906f77f 100644 --- a/docs/tutorial/desktop-environment-integration.md +++ b/docs/tutorial/desktop-environment-integration.md @@ -37,19 +37,7 @@ however, that it does not need to be pinned to the Start screen. * On Windows 7 and below, notifications are not supported. You can however send "balloon notifications" using the [Tray API](tray-balloon). -To use an image in your notification, pass a local image file (preferably `png`) -in the `icon` property of your notification's options. The notification will -still display if you submit an incorrect or `http/https`-based URL, but the -image will not be displayed. - -```javascript -new Notification('Title', { - body: 'Notification with icon', - icon: 'file:///C:/Users/feriese/Desktop/icon.png' -}); -``` - -Furthermore, keep in mind that the maximum length for the body is 250 characters, +Furthermore, the maximum length for the notification body is 250 characters, with the Windows team recommending that notifications should be kept to 200 characters. -- 2.7.4