Update main.js

This commit is contained in:
hl
2018-09-29 15:20:10 +08:00
parent 1273e82b74
commit 772357dd9b

View File

@@ -113,9 +113,9 @@ function sendNotification(message, callback) {
if (!message) message = {};
if (!pushover) {
if (adapter.config.user && adapter.config.token) {
if (adapter.config.user_name && adapter.config.token) {
pushover = new Pushover({
user: adapter.config.user,
user: adapter.config.user_name,
token: adapter.config.token
});
} else {