1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #1277 - Web: Wrong position of image and buttons during "Play To"

This commit is contained in:
Luke Pulverenti 2016-08-14 01:30:31 -04:00
parent 781f63d9ac
commit b6040d998e
8 changed files with 92 additions and 164 deletions

View file

@ -100,14 +100,28 @@ self.addEventListener('activate', function (event) {
});
self.addEventListener('notificationclick', function (event) {
event.notification.close();
var notification = event.notification;
notification.close();
var data = notification.data;
var serverId = data.serverId;
var action = event.action;
var promise;
if (action.indexOf('cancel-install') == 0) {
var id = action.split('-')[2];
console.log('cancel: ' + id);
} else {
clients.openWindow("/index.html");
switch (action) {
case 'cancel-install':
var id = data.id;
console.log('cancel: ' + id);
break;
case 'restart':
break;
default:
clients.openWindow("/");
break;
}
promise = promise || Promise.resolve();
event.waitUntil(promise);
}, false);