Merge pull request #4229 from tgxworld/uncaught_error_warning
FIX: Don't throw uncaught error warning when in readonly mode.
This commit is contained in:
commit
2dcabd4762
|
@ -124,6 +124,9 @@ export default class {
|
||||||
const postNumbers = Object.keys(newTimings).map(v => parseInt(v, 10));
|
const postNumbers = Object.keys(newTimings).map(v => parseInt(v, 10));
|
||||||
controller.readPosts(topicId, postNumbers);
|
controller.readPosts(topicId, postNumbers);
|
||||||
}
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
const error = e.jqXHR;
|
||||||
|
if (error.status === 405 && error.responseJSON.error_type === "read_only") return;
|
||||||
});
|
});
|
||||||
} else if (this._anonCallback) {
|
} else if (this._anonCallback) {
|
||||||
// Anonymous viewer - save to localStorage
|
// Anonymous viewer - save to localStorage
|
||||||
|
|
Loading…
Reference in New Issue