fix: remove broken ES module const reassignment (openFile monkey-patch)
This commit is contained in:
parent
83a5de2ed2
commit
a0768d7a76
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user