forked from p15670423/monkey
Fixed URL and added ICON
icon doesn't work yet - not passing a URL to the react notification package
This commit is contained in:
parent
6f814c59a7
commit
64fcf4425b
File diff suppressed because it is too large
Load Diff
|
@ -23,6 +23,7 @@ import 'styles/App.css';
|
||||||
import 'react-toggle/style.css';
|
import 'react-toggle/style.css';
|
||||||
import 'react-table/react-table.css';
|
import 'react-table/react-table.css';
|
||||||
import VersionComponent from "./side-menu/VersionComponent";
|
import VersionComponent from "./side-menu/VersionComponent";
|
||||||
|
import notificationIcon from '../images/notification-logo-512x512.png';
|
||||||
|
|
||||||
let logoImage = require('../images/monkey-icon.svg');
|
let logoImage = require('../images/monkey-icon.svg');
|
||||||
let infectionMonkeyImage = require('../images/infection-monkey.svg');
|
let infectionMonkeyImage = require('../images/infection-monkey.svg');
|
||||||
|
@ -200,12 +201,14 @@ class AppComponent extends AuthComponent {
|
||||||
|
|
||||||
showInfectionDoneNotification() {
|
showInfectionDoneNotification() {
|
||||||
if (this.state.completedSteps.infection_done) {
|
if (this.state.completedSteps.infection_done) {
|
||||||
console.log("Trying to show notification...");
|
let hostname = window.location.hostname;
|
||||||
|
let url = `https://${hostname}:5000/report`;
|
||||||
|
console.log("Trying to show notification. URL: " + url + " | icon: " + {notificationIcon});
|
||||||
Notifier.start(
|
Notifier.start(
|
||||||
"Monkey Island",
|
"Monkey Island",
|
||||||
"Infection is done. Click to see results",
|
"Infection is done! Click here to go to the report page.",
|
||||||
"https://localhost:5000/report",
|
url,
|
||||||
"");
|
{notificationIcon});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Loading…
Reference in New Issue