mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Use any in toolbar.ts for using context as parameter
This commit is contained in:
parent
81cf2c9bd4
commit
15f306950d
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
/* eslint
|
/* eslint
|
||||||
@typescript-eslint/no-non-null-assertion: "off",
|
@typescript-eslint/no-non-null-assertion: "off",
|
||||||
|
@typescript-eslint/no-explicit-any: "off",
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { disabledKey, nightModeKey } from "components/contextKeys";
|
import { disabledKey, nightModeKey } from "components/contextKeys";
|
||||||
|
@ -31,7 +32,7 @@ export function initToolbar(i18n: Promise<void>): Promise<EditorToolbar> {
|
||||||
document.documentElement.classList.contains("night-mode")
|
document.documentElement.classList.contains("night-mode")
|
||||||
);
|
);
|
||||||
|
|
||||||
toolbarResolve(new EditorToolbar({ target, anchor, context }));
|
toolbarResolve(new EditorToolbar({ target, anchor, context } as any));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue