| ... | ... |
@@ -35,7 +35,7 @@ function xhr_to_syno(method, url_path, onload_function, max_retry) {
|
| 35 | 35 |
return false; |
| 36 | 36 |
} |
| 37 | 37 |
} |
| 38 |
- } |
|
| 38 |
+ }; |
|
| 39 | 39 |
|
| 40 | 40 |
xhr.ontimeout = function (e) {
|
| 41 | 41 |
retry++; |
| ... | ... |
@@ -60,7 +60,8 @@ function xhr_to_syno(method, url_path, onload_function, max_retry) {
|
| 60 | 60 |
}); |
| 61 | 61 |
return false; |
| 62 | 62 |
} |
| 63 |
- } |
|
| 63 |
+ }; |
|
| 64 |
+ xhr.send(null); |
|
| 64 | 65 |
|
| 65 | 66 |
} else {
|
| 66 | 67 |
Pebble.showSimpleNotificationOnPebble("DSCam H-S", "You need to set your Synology account and server.");
|