Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #20420 from mnjul/bug_1023642_lockscreen_classlist…
Browse files Browse the repository at this point in the history
…_undefined

Bug 1023642 - Javascript Error: window.lockScreen.classList is undefined [r=gweng]
  • Loading branch information
mnjul authored and rvandermeulen committed Jun 16, 2014
1 parent 9f2753e commit 24436fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/system/js/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ var NotificationScreen = {
window.lockScreen.maskedBackground.style.backgroundColor =
window.lockScreen.maskedBackground.dataset.wallpaperColor;

window.lockScreen.classList.remove('blank');
window.lockScreen.maskedBackground.classList.remove('blank');
}

if (notify && !this.isResending) {
Expand Down Expand Up @@ -526,7 +526,7 @@ var NotificationScreen = {
if (!lockScreenNotificationNode.parentNode.firstElementChild) {
window.lockScreen.maskedBackground.style.backgroundColor =
'transparent';
window.lockScreen.classList.add('blank');
window.lockScreen.maskedBackground.classList.add('blank');
}
}
this.updateStatusBarIcon();
Expand Down Expand Up @@ -555,7 +555,7 @@ var NotificationScreen = {
// remove the bgcolor from wallpaper,
// and use the simple gradient
window.lockScreen.maskedBackground.style.backgroundColor = 'transparent';
window.lockScreen.classList.add('blank');
window.lockScreen.maskedBackground.classList.add('blank');
},

updateStatusBarIcon: function ns_updateStatusBarIcon(unread) {
Expand Down

0 comments on commit 24436fc

Please sign in to comment.