Skip to content

Commit

Permalink
minor lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Aug 3, 2023
1 parent c286c6f commit 84f166d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/json-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 ||
Expand Down

0 comments on commit 84f166d

Please sign in to comment.