From 19dd65e5d2012834c2f4ebd808f2154ba01dea93 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 27 Jul 2010 15:04:15 +0200 Subject: That would be actually nice to actually return the email from this.parseMailto when we actually collected it. --- lib/bzpage.js | 2 +- lib/main.js | 4 ++-- 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; } } -- cgit