Minor change
This commit is contained in:
parent
2f8d94bb1a
commit
e5063526e0
1 changed files with 3 additions and 1 deletions
|
@ -32,10 +32,12 @@ export class Communicator {
|
||||||
return this.addFlashcardCallback!(c.card, s);
|
return this.addFlashcardCallback!(c.card, s);
|
||||||
case commandKinds.removeFlashcard:
|
case commandKinds.removeFlashcard:
|
||||||
return this.removeFlashcardCallback!(c.card, s);
|
return this.removeFlashcardCallback!(c.card, s);
|
||||||
|
default:
|
||||||
|
console.warn(`Unimplemented command ${c}`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof ReferenceError)
|
if (e instanceof ReferenceError)
|
||||||
console.warn(`Unimplemented command ${c.commandKind}`);
|
console.warn(`Unimplemented command ${c}`);
|
||||||
else throw e;
|
else throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue