mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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) {
|
||||
window[key] = globals[key];
|
||||
}
|
||||
|
||||
// but also export as window.anki
|
||||
window["anki"] = globals;
|
||||
|
|
Loading…
Reference in a new issue