mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 02:29:24 +08:00
FIX: IE11 compatibility for readonly check
In some situations, the xhr object is undefined in IE11
This commit is contained in:
parent
37c9579a01
commit
fab3bbf705
@ -103,7 +103,7 @@ export function ajax() {
|
||||
run(() => {
|
||||
Site.currentProp(
|
||||
"isReadOnly",
|
||||
!!xhr.getResponseHeader("Discourse-Readonly")
|
||||
!!(xhr && xhr.getResponseHeader("Discourse-Readonly"))
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user