From 52e86a5b8961a2ff82b916e90293617226e21fcc Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Thu, 11 Apr 2024 13:06:58 -0600 Subject: [PATCH] Eliminate logging, and delete auto-close code on push as this breaks large files. --- electron/app.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/electron/app.ts b/electron/app.ts index 0cf5344..98d8252 100644 --- a/electron/app.ts +++ b/electron/app.ts @@ -159,7 +159,6 @@ class ADB { // rejectUnauthorized: process.env.NODE_ENV !== 'dev', body: JSON.stringify({ token: token }), }; - console.log("IFT:", url, options) fetch(url, options).then(response => { if (!response.ok || response.body == null) { console.log(response.statusText, response.status, response.headers); @@ -167,7 +166,6 @@ class ADB { } response.json().then(body => { let tasks = []; - console.log("IFT Body", body); for (let i = 0; i < body.data.apps.length; i++) { let app = body.data.apps[i]; if (Number(app.app_categories_id) === 1) { @@ -467,15 +465,16 @@ class ADB { scb(_stats); }, 1000); transfer.on('progress', stats => { - clearTimeout(autoCancel); + // clearTimeout(autoCancel); + console.log("Progress", stats, Date.now()); _stats = stats; - autoCancel = setTimeout(() => { + /* autoCancel = setTimeout(() => { clearInterval(interval); cb(); - }, 90000); + }, 90000); */ }); transfer.on('end', () => { - clearTimeout(autoCancel); + // clearTimeout(autoCancel); clearInterval(interval); cb(); });