Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 5a94245

Browse files
author
Wei Li
authored
Merge pull request #54 from chandu177/adding-missed-notification
adding notify_connection_to_storage_failed to notifications, this was missed last time
2 parents a176673 + 192c5ca commit 5a94245

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

fh-sync-js.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ interface SyncOptions {
4242
*/
4343
notify_client_storage_failed?: boolean,
4444

45+
/** Should a notification event be triggered when connection to client storage fails. ...*/
46+
notify_connection_to_storage_failed?: boolean,
47+
4548
/**
4649
* Should a notification event be triggered when a synchronization cycle with the server has been started.
4750
* Optional. Default: true

src/sync-client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ function newClient(id) {
2121
// Should local chages be syned to the cloud immediately, or should they wait for the next sync interval
2222
"notify_client_storage_failed": true,
2323
// Should a notification event be triggered when loading/saving to client storage fails
24+
"notify_connection_to_storage_failed": true,
25+
// Should a notification event be triggered when connection to client storage fails
2426
"notify_sync_started": true,
2527
// Should a notification event be triggered when a sync cycle with the server has been started
2628
"notify_sync_complete": true,

0 commit comments

Comments
 (0)