diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9aa71bd..32ced14 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,4 +16,5 @@ jobs: cache: 'npm' - run: npm ci - run: npm run lint + - run: npm run check - run: npm run test diff --git a/src/editor/export.js b/src/editor/export.js index 4357e2b..364ae7b 100644 --- a/src/editor/export.js +++ b/src/editor/export.js @@ -3,7 +3,7 @@ import { toUrl } from './canvas.js'; /** @type {HTMLFormElement} */ const sizes = document.querySelector('#exportSizes'); const maxSizeValue = sizes.querySelector('#maxSize'); -const sizeInputs = /** @type {NodeList} */ ( +const sizeInputs = /** @type {NodeListOf} */ ( document.getElementsByName('sizes') ); const jsonPreview = document.querySelector('.mask__json-view__preview'); diff --git a/src/editor/main.js b/src/editor/main.js index 2d87e8f..52c6edd 100644 --- a/src/editor/main.js +++ b/src/editor/main.js @@ -58,7 +58,7 @@ function createCanvases(preview) { const canvases = createCanvases(backgroundPreview); layers.set( - document.querySelector('input[name="layer"][value="background"'), + document.querySelector('input[name="layer"][value="background"]'), background, ); @@ -66,7 +66,7 @@ function createCanvases(preview) { history = new History( newLayer, - document.querySelector('input[name="layer"][value="background"'), + document.querySelector('input[name="layer"][value="background"]'), 0, );