mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix login issue
This commit is contained in:
parent
06d87cc76f
commit
8dddfae300
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
(function ($, document, Notifications) {
|
(function ($, document, Notifications) {
|
||||||
|
|
||||||
$(document).on("pagebeforeshow", ".page", function () {
|
$(document).on("pageinit", ".page", function () {
|
||||||
|
|
||||||
|
// If there is no user logged in there can be no notifications
|
||||||
|
if (!Dashboard.getCurrentUserId()) return;
|
||||||
|
|
||||||
var elem = $(".notificationsList");
|
var elem = $(".notificationsList");
|
||||||
var btn = $(".btnMarkReadContainer");
|
var btn = $(".btnMarkReadContainer");
|
||||||
var startIndex = 0;
|
var startIndex = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue