Check if _notification is still existent, before removing style-class in disable(), avoid possible error.

master
Jens Lody 11 years ago
parent f7db7f4d51
commit 241a91ea35
  1. 3
      src/extension.js

@ -355,7 +355,8 @@ function enable() {
*/
function disable() {
// remove our style, in case we just show a notification, otherwise the radius is drawn incorrect
Main.messageTray._notification._table.remove_style_class_name('jrlnotification');
if(Main.messageTray._notification)
Main.messageTray._notification._table.remove_style_class_name('jrlnotification');
Main.messageTray._showNotification = originalShowNotification;
Main.messageTray._hideNotification = originalHideNotification;
Main.messageTray._updateShowingNotification = originalUpdateShowingNotification;

Loading…
Cancel
Save