mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-11 08:24:05 +02:00
Fix xhr check for safari.
This commit is contained in:
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user