From 241a91ea35e06ac899e1f9119425b66c976cf1c6 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Tue, 4 Feb 2014 01:01:26 +0100 Subject: [PATCH] Check if _notification is still existent, before removing style-class in disable(), avoid possible error. --- src/extension.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 2bc37ba..542cef1 100644 --- a/src/extension.js +++ b/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;