Skip to content

Commit 06283aa

Browse files
committed
Make options.disabled only react to true and nothing else.
1 parent dce6d96 commit 06283aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'development';
33
const request = require('request-promise-native');
44

55
function sendRequest(namespace, text, level='INFO', options={}) {
6-
if (options.disabled == true) {
6+
if (options.disabled === true) {
77
if (options.debug) console.log('PushNotice: disabled not sending the notification');
88
return;
99
}

0 commit comments

Comments
 (0)