diff --git a/xlwings/js/xlwings.ts b/xlwings/js/xlwings.ts index 053d8e7e..3d3797ba 100644 --- a/xlwings/js/xlwings.ts +++ b/xlwings/js/xlwings.ts @@ -286,13 +286,12 @@ async function runPython( addPicture(workbook, action); } else if (action.func === "updatePicture") { updatePicture(workbook, action); - } else if (action.func === "nameDelete") { - nameDelete(workbook, action); - } - { + } else { globalThis.callbacks[action.func](workbook, action); } - console.log(); // Force sync + if (forceSync.some((el) => action.func.toLowerCase().includes(el))) { + console.log(); // Force sync + } }); } }