mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix: Showquestion is not defined
This commit is contained in:
parent
6869e9fd36
commit
244aade836
2 changed files with 2 additions and 4 deletions
|
@ -847,7 +847,7 @@ timerStopped = false;
|
|||
maxTime = self.card.time_limit() / 1000
|
||||
else:
|
||||
maxTime = 0
|
||||
self.bottom.web.eval("showQuestion(%s,%d);" % (json.dumps(middle), maxTime))
|
||||
self.bottom.web.eval("anki.showQuestion(%s,%d);" % (json.dumps(middle), maxTime))
|
||||
|
||||
def _showEaseButtons(self) -> None:
|
||||
if not self._states_mutated:
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
import "./index.scss"
|
||||
|
||||
console.log("Hello world")
|
||||
|
||||
let time: number; // set in python code
|
||||
let timerStopped = false;
|
||||
|
||||
|
@ -35,7 +33,7 @@ function updateTime(): void {
|
|||
|
||||
let intervalId: number | undefined;
|
||||
|
||||
function showQuestion(txt: string, maxTime_: number): void {
|
||||
export function showQuestion(txt: string, maxTime_: number): void {
|
||||
showAnswer(txt);
|
||||
time = 0;
|
||||
maxTime = maxTime_;
|
||||
|
|
Loading…
Reference in a new issue