aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-27 15:04:15 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-27 21:36:26 +0200
commit19dd65e5d2012834c2f4ebd808f2154ba01dea93 (patch)
tree29c2da514c3419dea0835a8d53dbee84d0ed8f28 /lib
parentd4465bb1acd333923c5224d34e0e2d627cf5b0dd (diff)
downloadbugzilla-triage-19dd65e5d2012834c2f4ebd808f2154ba01dea93.tar.gz
That would be actually nice to actually return the email from
this.parseMailto when we actually collected it.
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;
}
}