diff options
Diffstat (limited to 'lib/logger.js')
-rw-r--r-- | lib/logger.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/logger.js b/lib/logger.js index df01d37..5926bea 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -5,6 +5,7 @@ var urlMod = require("url"); var utilMod = require("util"); var Color = require("color").Color; var tabs = require("tabs"); +var prompts = require("prompts"); var apiUtils = require("api-utils"); function Logger(store, abbsMap) { @@ -23,7 +24,7 @@ Logger.prototype.addLogRecord = function(that) { rec.date = new Date(); rec.url = that.doc.location.toString(); rec.title = that.title; - var comment = tabs.activeTab.contentWindow.prompt( + var comment = prompts.prompt( "Enter comments for this comment"); console.log("comment = " + comment); if (comment && comment.length > 0) { |