mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue