mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -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
|
||||
// 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 "jquery/dist/jquery";
|
||||
|
||||
|
@ -139,7 +143,7 @@ export function _showAnswer(a: string, bodyclass: string): void {
|
|||
// avoid scrolling to the answer until images load
|
||||
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 "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);
|
||||
|
||||
const texOptions = {
|
||||
|
|
Loading…
Reference in a new issue