aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bzpage.js2
-rw-r--r--lib/main.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js
index e8f11aa..7b8a437 100644
--- a/lib/bzpage.js
+++ b/lib/bzpage.js
@@ -492,7 +492,7 @@ BZPage.prototype.setConfigurationButton = function setConfigurationButton () {
*/
BZPage.prototype.parseMailto = function parseMailto(aElement) {
if (aElement) {
- var email = decodeURI(aElement.getAttribute("href")).
+ return decodeURI(aElement.getAttribute("href")).
split(":")[1];
}
return null;
diff --git a/lib/main.js b/lib/main.js
index b9476b0..4b35d26 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -11,7 +11,7 @@
// http://ehsanakhgari.org/blog/2010-05-31/my-experience-jetpack-sdk#comment-1253
//
"use strict";
-var util = require("util");
+var prompts = require("prompts");
var logger = require("logger");
var myStorage = require("simple-storage").storage;
var browser = require("tab-browser");
@@ -52,7 +52,7 @@ function skipThisPage(doc) {
var emailsSent = doc.
querySelector("#bugzilla-body > dl:nth-of-type(1)").textContent;
emailsSent = emailsSent.replace(/^(\s*)$/mg,"");
- util.notification(emailsSent);
+ prompts.notification(emailsSent);
doc.location = stemURL.replace("HOSTNAME",hostname) + bugNo;
}
}