From 30a50b746b2d2c162600d19c77a3dcf0e512a4a7 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 6 Jul 2021 03:48:33 +0200 Subject: [PATCH] Export editor globals under anki namespace --- ts/editor/index_wrapper.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/editor/index_wrapper.ts b/ts/editor/index_wrapper.ts index 13b2ec606..6c0ec80af 100644 --- a/ts/editor/index_wrapper.ts +++ b/ts/editor/index_wrapper.ts @@ -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;