Skip to content

Commit d0997c2

Browse files
committed
refactor: remove jquery in modals/dev-options
1 parent fe272d1 commit d0997c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/ts/modals/dev-options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { toggleUserFakeChartData } from "../test/result";
1010
import { toggleCaretDebug } from "../utils/caret";
1111
import { getInputElement } from "../input/input-element";
1212
import { disableSlowTimerFail } from "../test/test-timer";
13+
import { qsr } from "../utils/dom";
1314

1415
let mediaQueryDebugLevel = 0;
1516

@@ -111,7 +112,7 @@ const modal = new AnimatedModal({
111112
});
112113

113114
export function appendButton(): void {
114-
$("body").prepend(
115+
qsr("body").prependHtml(
115116
`
116117
<div id="devButtons">
117118
<a class='button configureAPI' href='${envConfig.backendUrl}/configure/' target='_blank' aria-label="Configure API" data-balloon-pos="right"><i class="fas fa-fw fa-server"></i></a>

0 commit comments

Comments
 (0)