summaryrefslogtreecommitdiffstats
path: root/app/api
diff options
context:
space:
mode:
Diffstat (limited to 'app/api')
-rw-r--r--app/api/GPS.qml2
-rw-r--r--app/api/GeoFence.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/api/GPS.qml b/app/api/GPS.qml
index 679c66e..95c7712 100644
--- a/app/api/GPS.qml
+++ b/app/api/GPS.qml
@@ -55,7 +55,7 @@ WebSocket {
case msgid.event:
var payload = JSON.parse(JSON.stringify(json[2]))
var event = payload.event
- if (event == "gps/location") {
+ if (event === "gps/location") {
var data = json[2].data
var latitude = data.latitude
var longitude = data.longitude
diff --git a/app/api/GeoFence.qml b/app/api/GeoFence.qml
index 7061984..a39eecb 100644
--- a/app/api/GeoFence.qml
+++ b/app/api/GeoFence.qml
@@ -55,7 +55,7 @@ WebSocket {
case msgid.event:
var payload = JSON.parse(JSON.stringify(json[2]))
var event = payload.event
- if (event == "geofence/fence") {
+ if (event === "geofence/fence") {
var data = json[2].data
console.log("geofence event - name: " + data.name + " state: " + data.state)
}