2021-04-13 10:57:08 +02:00
|
|
|
// Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
|
2021-03-20 05:02:19 +01:00
|
|
|
// extend the global namespace with our exports - not sure if there's a better way with esbuild
|
|
|
|
import * as globals from "./index";
|
|
|
|
for (const key in globals) {
|
|
|
|
window[key] = globals[key];
|
|
|
|
}
|
2021-07-06 03:48:33 +02:00
|
|
|
|
|
|
|
// but also export as window.anki
|
|
|
|
window["anki"] = globals;
|