fix: remove broken ES module const reassignment (openFile monkey-patch)
All checks were successful
CI / lint (push) Successful in 13s
CI / security (push) Successful in 9s
CI / test (push) Successful in 19s
CI / build (push) Successful in 2s

This commit is contained in:
Bruno Charest 2026-05-28 15:43:31 -04:00
parent 83a5de2ed2
commit a0768d7a76

View File

@ -2209,12 +2209,6 @@ async function init() {
safeCreateIcons();
}
// ---- Modify openFile to use TabManager ----
const _originalOpenFile = openFile;
openFile = function(vault, path) {
TabManager.open(vault, path);
};
// ---- Keyboard shortcuts for tabs ----
document.addEventListener("keydown", (e) => {
if (e.ctrlKey || e.metaKey) {