hyper-notifier
Advanced tools
Comparing version 1.0.4 to 1.0.5
12
index.js
@@ -1,13 +0,11 @@ | ||
const notifier = require('node-notifier'); | ||
const notifier = require('node-notifier') | ||
let notifications = [] | ||
let notifierString; | ||
exports.onApp = registerConfigs | ||
exports.middleware = (store) => (next) => (action) => { | ||
if ('SESSION_PTY_DATA' === action.type) { | ||
if ('SESSION_ADD_DATA' === action.type) { | ||
const { data } = action; | ||
registerConfigs() | ||
if (isNotifierString(data)) { | ||
// load notificaion configs | ||
// load notification configs | ||
const instanceOverrides = findNotifierString(data) | ||
@@ -37,3 +35,3 @@ | ||
function registerConfigs() { | ||
const notifierConfigs = config.getConfig().hyperNotifier | ||
const notifierConfigs = window.config.getConfig().hyperNotifier | ||
@@ -40,0 +38,0 @@ if(notifications.length > 0 && !notifierString) { |
{ | ||
"name": "hyper-notifier", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A notifications and alerting plugin for Hyper.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,3 +23,3 @@ # hyper-notifier | ||
title: 'ERR! was detected!', // node-notifier config | ||
message: 'check hyperterm', // node-notifier config | ||
message: 'check hyperterm', // node-notifier config | ||
sound: 'Funk', | ||
@@ -26,0 +26,0 @@ } |
6321
5