Hotfix for broken templates on BS4 and RAW post-processors
Update excel-password-remover.mjs
This commit is contained in:
@@ -108,12 +108,16 @@ export function isExcelExtension(fileName) {
|
|||||||
).then(eFragment => {
|
).then(eFragment => {
|
||||||
console.debug(eFragment);
|
console.debug(eFragment);
|
||||||
|
|
||||||
const eFileOutput = eFragment.firstChild;
|
// Doesn't work on BS4 and RAW, it returns " "...
|
||||||
|
//const eFileOutput = eFragment.firstChild;
|
||||||
|
|
||||||
|
const eFileOutput = eFragment.querySelector("*");
|
||||||
eFileOutput.addEventListener("click", function() {
|
eFileOutput.addEventListener("click", function() {
|
||||||
console.debug(123);
|
console.debug(123);
|
||||||
//processedZipFile
|
//processedZipFile
|
||||||
downloadProcessedFile(excelFile);
|
downloadProcessedFile(excelFile);
|
||||||
});
|
});
|
||||||
|
console.debug(eFileOutput);
|
||||||
eResultContainer.appendChild(eFileOutput);
|
eResultContainer.appendChild(eFileOutput);
|
||||||
|
|
||||||
//const uuid = crypto.randomUUID();
|
//const uuid = crypto.randomUUID();
|
||||||
@@ -294,7 +298,7 @@ export function isExcelExtension(fileName) {
|
|||||||
if(excelFile.filesTotalCount !== excelFile.filesProcessedCount) {
|
if(excelFile.filesTotalCount !== excelFile.filesProcessedCount) {
|
||||||
setTimeout(waitFilesBeingProcessed, 50);
|
setTimeout(waitFilesBeingProcessed, 50);
|
||||||
} else {
|
} else {
|
||||||
console.debug("Done, now switching the page !");
|
console.debug("Done !");
|
||||||
if(excelFile.passwordsRemoved > 0) {
|
if(excelFile.passwordsRemoved > 0) {
|
||||||
onFileHavingPasswordRemoved(excelFile);
|
onFileHavingPasswordRemoved(excelFile);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user