Skip to content

Commit

Permalink
chore: revert line change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Nov 7, 2024
1 parent c96a622 commit 2a27e6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/js/common/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ class DOM {
return this.iconSymbols
}

const formeoSprite = document.getElementById(formeoSpriteId)
const iconSymbolNodes = formeoSprite.querySelectorAll('svg symbol')
const iconSymbolNodes = document.querySelectorAll(`#${formeoSpriteId} svg symbol`)

const createSvgIconConfig = symbolId => ({
tag: 'svg',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/js/constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pkg from '../../../package.json' with { type: 'json' }

const isProd = import.meta.env.PROD
const isProd = import.meta.env?.PROD

const name = pkg.name
const version = pkg.version
Expand Down
2 changes: 1 addition & 1 deletion tools/test-setup.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { snapshot } = require('node:test')
const { basename, join, dirname } = require('node:path')
const { JSDOM } = require('jsdom')

const { window } = new JSDOM(`<!DOCTYPE html><p>Hello World</p>`)
const { window } = new JSDOM('<!DOCTYPE html><p>Hello World</p>')
global.window = window
global.document = window.document
global.navigator = window.navigator
Expand Down

0 comments on commit 2a27e6e

Please sign in to comment.