From 84f166d9cedee7659a2070cd05fe76b247778c4e Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Thu, 3 Aug 2023 12:16:36 -0400 Subject: [PATCH] minor lint fixes --- src/json-utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/json-utils.js b/src/json-utils.js index d42edc4af..9dfe52103 100644 --- a/src/json-utils.js +++ b/src/json-utils.js @@ -7,7 +7,7 @@ and returns a Javascript object function convertDOMElToObject (entity) { const data = []; const environmentElement = document.querySelector('#environment'); - const layers2DElement = document.querySelector('#layers-2d'); + const layers2DElement = document.querySelector('#layers-2d'); const sceneEntities = [entity, environmentElement, layers2DElement]; for (const entry of sceneEntities) { @@ -84,8 +84,8 @@ function getAttributes (entity) { } function toPropString (propData) { - if (typeof propData === 'string' || typeof propData === 'number' || typeof propData === 'boolean' - || Array.isArray(propData)) { + if (typeof propData === 'string' || typeof propData === 'number' || typeof propData === 'boolean' || + Array.isArray(propData)) { return (propData).toString(); } if (propData.isVector3 || propData.isVector2 || propData.isVector4 ||