mirror of
https://github.com/lrsjng/h5ai
synced 2025-12-07 09:22:49 +01:00
Fix xhr check for safari.
This commit is contained in:
parent
fe5ce111af
commit
dc2a74d251
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
assert('console', win.console && isFn(win.console.log));
|
assert('console', win.console && isFn(win.console.log));
|
||||||
assert('assign', win.Object && isFn(win.Object.assign));
|
assert('assign', win.Object && isFn(win.Object.assign));
|
||||||
assert('promise', isFn(win.Promise));
|
assert('promise', isFn(win.Promise));
|
||||||
assert('xhr', isFn(win.XMLHttpRequest));
|
// assert('xhr', isFn(win.XMLHttpRequest)); // is object in safari
|
||||||
|
assert('xhr', win.XMLHttpRequest);
|
||||||
}(this));
|
}(this));
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue