mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Satisfy eslint
This commit is contained in:
parent
ddf3adfc8e
commit
ac3577455d
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
|
/* eslint
|
||||||
|
@typescript-eslint/no-non-null-assertion: "off",
|
||||||
|
*/
|
||||||
|
|
||||||
import "css-browser-selector/css_browser_selector";
|
import "css-browser-selector/css_browser_selector";
|
||||||
import "jquery/dist/jquery";
|
import "jquery/dist/jquery";
|
||||||
|
|
||||||
|
@ -139,7 +143,7 @@ export function _showAnswer(a: string, bodyclass: string): void {
|
||||||
// avoid scrolling to the answer until images load
|
// avoid scrolling to the answer until images load
|
||||||
allImagesLoaded().then(scrollToAnswer);
|
allImagesLoaded().then(scrollToAnswer);
|
||||||
},
|
},
|
||||||
function () {}
|
function () {/* noop */}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,8 @@ import { RegisterHTMLHandler } from "mathjax-full/js/handlers/html";
|
||||||
import { AllPackages } from "mathjax-full/js/input/tex/AllPackages.js";
|
import { AllPackages } from "mathjax-full/js/input/tex/AllPackages.js";
|
||||||
import "mathjax-full/js/util/entities/all";
|
import "mathjax-full/js/util/entities/all";
|
||||||
|
|
||||||
const adaptor = new HTMLAdaptor(window as any);
|
// @ts-expect-error Minor interface mismatch: document.documentElement.nodeValue might be null
|
||||||
|
const adaptor = new HTMLAdaptor(window);
|
||||||
RegisterHTMLHandler(adaptor);
|
RegisterHTMLHandler(adaptor);
|
||||||
|
|
||||||
const texOptions = {
|
const texOptions = {
|
||||||
|
|
Loading…
Reference in a new issue