Skip to content
Browse files

Added notification for when ~/.js file is found and executed

  • Loading branch information...
1 parent af066e2 commit ef8c1c4bf361f347ec1764e8f3adb9a669e50e00 @rlr rlr committed Feb 23, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/main.js
View
7 lib/main.js
@@ -1,7 +1,8 @@
var pageMod = require('page-mod'),
data = require('self').data,
file = require('file'),
- url = require('url');
+ url = require('url'),
+ notifications = require("notifications");
pageMod.PageMod({
include: "*",
@@ -21,6 +22,10 @@ pageMod.PageMod({
var filename = '~/.js/' + domain + '.js';
if (file.exists(filename)) {
worker.postMessage(file.read(filename));
+ notifications.notify({
+ title: 'dotjs file found and executed',
+ text: filename
+ });
}
});
}

0 comments on commit ef8c1c4

Please sign in to comment.
Something went wrong with that request. Please try again.