From 501830ad5bbb1aced4faf00cbcd824f3b37607cd Mon Sep 17 00:00:00 2001 From: Oleguer Llopart Date: Tue, 15 Aug 2023 11:57:02 +0200 Subject: [PATCH] Fix: Error when extract 7z --- scripts/file-manager.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/file-manager.js b/scripts/file-manager.js index eb97ea299..d668c593c 100644 --- a/scripts/file-manager.js +++ b/scripts/file-manager.js @@ -940,8 +940,6 @@ var fileCompressed = function(path, _realPath = false) { if(unzip === false) unzip = require('unzipper'); - console.log(this.realPath); - this.zip = await unzip.Open.file(this.realPath); return this.zip; @@ -1152,7 +1150,7 @@ var fileCompressed = function(path, _realPath = false) { _7z.on('data', function(data) { - let extracted = data.status == 'extracted' ? true : false; + let extract = data.status == 'extracted' ? true : false; if(extract) { @@ -1539,8 +1537,6 @@ var fileCompressed = function(path, _realPath = false) { let status = this.getFileStatus(file); - console.log('renderCanvasPdf', file/*, status*/); - if((status && status.widthRendered !== this.config.width) || this.config.force) { // Render page