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(() => {
|
run(() => {
|
||||||
Site.currentProp(
|
Site.currentProp(
|
||||||
"isReadOnly",
|
"isReadOnly",
|
||||||
!!xhr.getResponseHeader("Discourse-Readonly")
|
!!(xhr && xhr.getResponseHeader("Discourse-Readonly"))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue