Add functionality to create item macros via drag & drop
This commit is contained in:
parent
07bcd3a58e
commit
212295069f
9 changed files with 128 additions and 9 deletions
6
src/module/helpers.ts
Normal file
6
src/module/helpers.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export function getCanvas(): Canvas {
|
||||
if (!(canvas instanceof Canvas) || !canvas.ready) {
|
||||
throw new Error(game.i18n.localize("DS4.ErrorCanvasIsNotInitialized"));
|
||||
}
|
||||
return canvas;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue