mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
Merge branch 'hotfix/v7.4.2' into release/v7.5.0
This commit is contained in:
@ -303,43 +303,3 @@ var performance = window.performance = (function(){
|
||||
now : function() { return Date.now() - basePerformanceOffset; }
|
||||
};
|
||||
})();
|
||||
|
||||
(function(window, undefined){
|
||||
function ZLib()
|
||||
{
|
||||
/** @suppress {checkVars} */
|
||||
this.engine = CreateEmbedObject("CZipEmbed");
|
||||
this.files = {};
|
||||
}
|
||||
ZLib.prototype.isModuleInit = true;
|
||||
ZLib.prototype.open = function(buf)
|
||||
{
|
||||
return this.engine.open((undefined !== buf.byteLength) ? new Uint8Array(buf) : buf);
|
||||
};
|
||||
ZLib.prototype.create = function()
|
||||
{
|
||||
return this.engine.create();
|
||||
};
|
||||
ZLib.prototype.save = function()
|
||||
{
|
||||
return this.engine.save();
|
||||
};
|
||||
ZLib.prototype.getFile = function(path)
|
||||
{
|
||||
return this.engine.getFile(path);
|
||||
};
|
||||
ZLib.prototype.addFile = function(path, data)
|
||||
{
|
||||
return this.engine.addFile(path, (undefined !== data.byteLength) ? new Uint8Array(data) : data);
|
||||
};
|
||||
ZLib.prototype.removeFile = function(path)
|
||||
{
|
||||
return this.engine.removeFile(path);
|
||||
};
|
||||
ZLib.prototype.close = function()
|
||||
{
|
||||
return this.engine.close();
|
||||
};
|
||||
|
||||
window.nativeZlibEngine = new ZLib();
|
||||
})(window, undefined);
|
||||
|
||||
Reference in New Issue
Block a user