Skip to content

Commit

Permalink
feat: if !dbUrl use indexeddb
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed May 10, 2023
1 parent f86d08e commit ba86800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const CoCreateUser = {
}

const socket = crud.socket.getSockets()
if (!socket[0] || !socket[0].connected || window && !window.navigator.onLine) {
if (!socket[0] || !socket[0].connected || window && !window.navigator.onLine || crud.socket.dbUrl == false || crud.socket.organization == false) {
crud.updateDocument(request).then((response) => {
response['success'] = false
response['status'] = "signIn failed"
Expand Down

0 comments on commit ba86800

Please sign in to comment.