aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/main.js b/lib/main.js
index 09cd0ae..1de348f 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -75,6 +75,9 @@ function tweakBugzilla(d) {
onClick: function() style.disabled = !style.disabled
});
contextMenu.add(ccMenuItem);
+ d.defaultView.addEventListener("unload", function() {
+ contextMenu.remove(ccMenuItem);
+ }, false);
var userNameCache = {};
function getUserName(email) {
@@ -155,6 +158,9 @@ function tweakBugzilla(d) {
onClick: function() require("clipboard").set(message)
});
contextMenu.add(copyCheckinCommentItem);
+ d.defaultView.addEventListener("unload", function() {
+ contextMenu.remove(copyCheckinCommentItem);
+ }, false);
}
}