Using protocol as well for cases when we are running on HTTP and not HTTPS (npm run start for example)

This commit is contained in:
Shay Nehmad 2019-09-16 16:44:16 +03:00
parent d4947d97f3
commit 9f98025d33
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{
"server_config": "standard",
"server_config": "testing",
"deployment": "develop"
}

View File

@ -215,7 +215,8 @@ class AppComponent extends AuthComponent {
if (this.shouldShowNotification()) {
const hostname = window.location.hostname;
const port = window.location.port;
const url = `https://${hostname}:${port}${reportZeroTrustRoute}`;
const protocol = window.location.protocol;
const url = `${protocol}//${hostname}:${port}${reportZeroTrustRoute}`;
Notifier.start(
"Monkey Island",