fix mutateNextCardStates being exported into global namespace

https://forums.ankiweb.net/t/v3-custom-scheduler-not-working/12441
This commit is contained in:
Damien Elmes 2021-08-19 10:21:04 +10:00
parent 79fbf9ad3e
commit 0671e7e712

View file

@ -10,7 +10,9 @@ import "css-browser-selector/css_browser_selector.min";
export { default as $, default as jQuery } from "jquery/dist/jquery"; export { default as $, default as jQuery } from "jquery/dist/jquery";
export { mutateNextCardStates } from "./answering"; import { mutateNextCardStates } from "./answering";
globalThis.anki = globalThis.anki || {};
globalThis.anki.mutateNextCardStates = mutateNextCardStates;
import { bridgeCommand } from "lib/bridgecommand"; import { bridgeCommand } from "lib/bridgecommand";
import { allImagesLoaded, preloadAnswerImages } from "./images"; import { allImagesLoaded, preloadAnswerImages } from "./images";