7 lines
201 B
TypeScript
7 lines
201 B
TypeScript
|
export function getCanvas(): Canvas {
|
||
|
if (!(canvas instanceof Canvas) || !canvas.ready) {
|
||
|
throw new Error(game.i18n.localize("DS4.ErrorCanvasIsNotInitialized"));
|
||
|
}
|
||
|
return canvas;
|
||
|
}
|