You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ last sync'd April 16, 2024
88
88
| Selectlist demos | Demo page showing how the Open UI's `<selectlist>` element can be used. |[/selectlist/](https://github.com/MicrosoftEdge/Demos/tree/main/selectlist)|[Open UI's \<selectlist\> demos](https://microsoftedge.github.io/Demos/selectlist/)|
89
89
| EditContext API demo | Demo page showing how the EditContext API can be used to build an advanced text editor. |[/edit-context/](https://github.com/MicrosoftEdge/Demos/tree/main/edit-context)|[HTML editor demo](https://microsoftedge.github.io/Demos/edit-context/)|
90
90
| SVG support in the Async Clipboard API | Demo page showing how the Async Clipboard API supports SVG format. |[/svg-clipboard/](https://github.com/MicrosoftEdge/Demos/tree/main/svg-clipboard)|[SVG clipbard support demo](https://microsoftedge.github.io/Demos/svg-clipboard/)|
91
+
| IndexedDB: getAllRecords() | Demo page showing how the newly proposed `getAllRecords` IndexedDB method differs from `getAll` and `getAllKeys`. |[/idb-getallrecords/](https://github.com/MicrosoftEdge/Demos/tree/main/idb-getallrecords)|[IndexedDB: getAllRecords()](https://microsoftedge.github.io/Demos/idb-getallrecords/)|
constnotification=newNotification(`Window Title ${++toastId}`,{body: `Window Body ${++toastId}`,icon: "../resources/happy2.jpg",requireInteraction: false,silent: true});
registration.showNotification(`ServiceWorker Title ${++toastId}`,{body: `ServiceWorker Body: ${toastId}`,icon: "../resources/happy.jpg",actions: [{action: "open_window",title: "Open New Window"},{action: "focus",title: "Focus Existing Window"}]})
114
+
.then(()=>{
115
+
log("showNotification() succeeded");
116
+
}).catch((error)=>{
117
+
log(`showNotification() failed: ${error}.`);
118
+
});
119
+
}
120
+
}
121
+
122
+
functionshowServiceWorkerToastWithTag(){
123
+
if(registration!==null){
124
+
registration.showNotification(`ServiceWorker Title with Tag ${++toastId}`,{body: `ServiceWorker Body: Tag ${toastId}`,icon: "../resources/happy.jpg",requireInteraction: false,silent: true,tag: "ServiceWorkerTag"})
registration.showNotification(`ServiceWorker Title with Tag with renotify ${++toastId}`,{body: `ServiceWorker Body: Tag with renotify ${toastId}`,icon: "../resources/happy.jpg",requireInteraction: false,silent: true,tag: "ServiceWorkerTagWithoutRenotify",renotify: true})
0 commit comments