mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 22:49:25 +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(() => {
|
run(() => {
|
||||||
Site.currentProp(
|
Site.currentProp(
|
||||||
"isReadOnly",
|
"isReadOnly",
|
||||||
!!xhr.getResponseHeader("Discourse-Readonly")
|
!!(xhr && xhr.getResponseHeader("Discourse-Readonly"))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user