mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
Fix for old browsers (min version)
This commit is contained in:
14
vendor/array.js
vendored
14
vendor/array.js
vendored
@ -205,8 +205,17 @@
|
||||
if (window &&
|
||||
window.AscCommon &&
|
||||
window.AscCommon.AscBrowser &&
|
||||
window.AscCommon.AscBrowser.isChrome &&
|
||||
typeof Object.values === "undefined")
|
||||
window.AscCommon.AscBrowser.isChrome)
|
||||
{
|
||||
let typeOfValues = typeof Object.values;
|
||||
let isOld = typeOfValues === "undefined";
|
||||
if (!isOld && typeOfValues === "function")
|
||||
{
|
||||
if (Object.values.toString().indexOf("[native code]") === -1)
|
||||
isOld = true;
|
||||
}
|
||||
|
||||
if (isOld)
|
||||
{
|
||||
(function() {
|
||||
var _sort = Array.prototype.sort;
|
||||
@ -251,4 +260,5 @@
|
||||
};
|
||||
})();
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user