aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-07 11:45:52 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-07 11:45:52 -0800
commit9caf803986d14661e2e1842b80ee3aa58c8d5c6d (patch)
tree9cf4cfcb2f07f0fdb0afd82ad3da6b4214388d1a /src/main/java/org/traccar
parentad2ca9cdb5c70b8139321fdfee86c111c5f690b5 (diff)
downloadtrackermap-server-9caf803986d14661e2e1842b80ee3aa58c8d5c6d.tar.gz
trackermap-server-9caf803986d14661e2e1842b80ee3aa58c8d5c6d.tar.bz2
trackermap-server-9caf803986d14661e2e1842b80ee3aa58c8d5c6d.zip
Remove comments
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/notificators/NotificatorPushover.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/notificators/NotificatorPushover.java b/src/main/java/org/traccar/notificators/NotificatorPushover.java
index 52646bdfb..141d652ca 100644
--- a/src/main/java/org/traccar/notificators/NotificatorPushover.java
+++ b/src/main/java/org/traccar/notificators/NotificatorPushover.java
@@ -47,10 +47,9 @@ public class NotificatorPushover extends Notificator {
}
public NotificatorPushover() {
- // see https://pushover.net/api
url = "https://api.pushover.net/1/messages.json";
- token = Context.getConfig().getString("notificator.pushover.token"); // (required) token from pushover.net
- puser = Context.getConfig().getString("notificator.pushover.user"); // (required) user from pushover.net
+ token = Context.getConfig().getString("notificator.pushover.token");
+ puser = Context.getConfig().getString("notificator.pushover.user");
}
@Override
@@ -61,9 +60,6 @@ public class NotificatorPushover extends Notificator {
String device = "";
if (user.getAttributes().containsKey("notificator.pushover.device")) {
- // optional: your user's device name to send the message directly
- // to that device, rather than all of the user's devices (multiple devices may be separated by a comma)
- // i.e.: device1,device2 (no space)
device = user.getString("notificator.pushover.device").replaceAll(" *, *", ",");
}