|
|
@ -77,7 +77,7 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'ben
|
|
|
|
payload.message = notifData.bodyShort;
|
|
|
|
payload.message = notifData.bodyShort;
|
|
|
|
payload.type = 'info';
|
|
|
|
payload.type = 'info';
|
|
|
|
payload.clickfn = function () {
|
|
|
|
payload.clickfn = function () {
|
|
|
|
if (notifData.path.startsWith('http') && notifData.path.startsWith('https')) {
|
|
|
|
if (notifData.path.startsWith('http') || notifData.path.startsWith('https')) {
|
|
|
|
window.location.href = notifData.path;
|
|
|
|
window.location.href = notifData.path;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
window.location.href = window.location.protocol + '//' + window.location.host + config.relative_path + notifData.path;
|
|
|
|
window.location.href = window.location.protocol + '//' + window.location.host + config.relative_path + notifData.path;
|
|
|
|