Skip to content

Commit

Permalink
Fixed notification issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrievkv-grapecity committed Dec 17, 2019
1 parent 4ae5c33 commit d42e1b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/stock-portfolio/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,11 @@ export class AppComponent {
}

private _displayNotification(message: string) {
const favicon = <HTMLLinkElement> document.querySelector('link[rel="icon"]');
Notifications.create({
title: 'Portfolio History',
body: message,
category: 'Portfolio History',
icon: favicon.href
icon: 'favicon.ico'
});
}

Expand Down
5 changes: 4 additions & 1 deletion resources/win/run.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ echo "description": "A financial OpenFin application that was developed u
echo "icon": "%main_app_url%/favicon.ico",
echo "name": "Stock Portfolio"
echo },
echo "services": [ {"name": "layouts"} ],
echo "services": [
echo {"name": "layouts"},
echo {"name": "notifications"}
echo ],
echo "features": {
echo "snap": true,
echo "dock": true,
Expand Down

0 comments on commit d42e1b9

Please sign in to comment.