Skip to content

Commit

Permalink
remove console outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
39zde committed Oct 10, 2024
1 parent f253c11 commit ea90387
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ function downloadFile(buf, compressionType, fileName) {
URL.revokeObjectURL(link.href);
return null;
} catch (e) {
console.error(e);
return new Error("File has been created from given data");
}
}
Expand Down Expand Up @@ -233,7 +232,6 @@ function compressFile(file, compressionType, messageOutput) {
}
})
.catch((e) => {
console.error(e);
displayMessage(messageOutput, "error", e);
});
}
Expand Down Expand Up @@ -290,12 +288,11 @@ function decompressFile(file, compressionType, messageOutput) {
}
})
.catch((e) => {
console.error(e);
displayMessage(messageOutput, "error", e);
});
}

/**
/**f
* displays a message to an HTMLOutputElement via innerText
* @param {HTMLOutputElement} element
* @param {"progress" | "success" | "error" | "hide"} type
Expand Down Expand Up @@ -345,7 +342,8 @@ function main(fileInputID, compressionTypeInputID, startInputID, messageOutputID
const shortcutToggle = document.getElementById(shortcutToggleID);
if (fileInput == null || typeSelect == null || actionInput == null || messageOutput == null || shortcutDiv == null || shortcutToggle == null) {
// console.log("File Input: ", fileInput == null, "type select: ", typeSelect == null, "action input: ", actionInput == null, "message output: ", messageOutput == null, "shortcut-div", shortcutDiv == null, "short-cut toggle", shortcutToggle == null);
return console.error("failed to find input elements");
// return console.error("failed to find input elements");
return;
}

const isCompatible = checkBrowserCompatibility();
Expand Down

0 comments on commit ea90387

Please sign in to comment.