mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Export editor globals under anki namespace
This commit is contained in:
parent
ca4d4424e6
commit
794b9f30dc
1 changed files with 3 additions and 0 deletions
|
@ -6,3 +6,6 @@ import * as globals from "./index";
|
||||||
for (const key in globals) {
|
for (const key in globals) {
|
||||||
window[key] = globals[key];
|
window[key] = globals[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// but also export as window.anki
|
||||||
|
window["anki"] = globals;
|
||||||
|
|
Loading…
Reference in a new issue