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. 1
      src/extension.js

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

Loading…
Cancel
Save