We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e36ddaf + 6e95f04 commit de4be53Copy full SHA for de4be53
src/ParseObject.js
@@ -1219,7 +1219,7 @@ class ParseObject {
1219
try {
1220
await this.save(null, options);
1221
} catch (e) {
1222
- if (e.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"') {
+ if (e.code === ParseError.CONNECTION_FAILED) {
1223
await EventuallyQueue.save(this, options);
1224
EventuallyQueue.poll();
1225
}
@@ -1363,7 +1363,7 @@ class ParseObject {
1363
1364
await this.destroy(options);
1365
1366
1367
await EventuallyQueue.destroy(this, options);
1368
1369
0 commit comments