Skip to content

Commit 0f971b4

Browse files
Update bannerImpl.md
1 parent 0d46e33 commit 0f971b4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/developers/bannerImpl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ export function pushNotificationMessage(options: NotificationOptions): void {
1515
```
1616
[pushNotificationMessage Implementation](https://github.com/microsoft/pxt/blob/master/skillmap/src/lib/notifications.ts#L7-L9)
1717
18-
It then processes into the warning notification function, which gets passed by pushNotificationMessage. And then all these steps get executed by `showNotificationMsg`. Finally, these functions then are called in `errorNotification` and `warningNotification.`
19-
18+
It then processes into the warning notification function, which gets passed by pushNotificationMessage.
2019
``` ts
2120
function showNotificationMsg(kind: string, msg: string) {
2221
pushNotificationMessage({ kind: kind, text: msg, hc: false }); // No high contrast support in skillmap
2322
}
23+
```
24+
And then all these steps get executed by `showNotificationMsg`. Finally, these functions then are called in `errorNotification` and `warningNotification.`
2425
26+
``` ts
2527
export function errorNotification(msg: string) {
2628
pxt.tickEvent("notification.error", { message: msg })
2729
debugger // trigger a breakpoint when a debugger is connected, like in U.oops()

0 commit comments

Comments
 (0)