Skip to content

Commit e04a018

Browse files
committed
chore: revert line change
1 parent 6d4c212 commit e04a018

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/lib/js/common/dom.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ class DOM {
278278
return this.iconSymbols
279279
}
280280

281-
const formeoSprite = document.getElementById(formeoSpriteId)
282-
const iconSymbolNodes = formeoSprite.querySelectorAll('svg symbol')
281+
const iconSymbolNodes = document.querySelectorAll(`#${formeoSpriteId} svg symbol`)
283282

284283
const createSvgIconConfig = symbolId => ({
285284
tag: 'svg',

src/lib/js/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pkg from '../../../package.json' with { type: 'json' }
22

3-
const isProd = import.meta.env.PROD
3+
const isProd = import.meta.env?.PROD
44

55
const name = pkg.name
66
const version = pkg.version

tools/test-setup.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { snapshot } = require('node:test')
22
const { basename, join, dirname } = require('node:path')
33
const { JSDOM } = require('jsdom')
44

5-
const { window } = new JSDOM(`<!DOCTYPE html><p>Hello World</p>`)
5+
const { window } = new JSDOM('<!DOCTYPE html><p>Hello World</p>')
66
global.window = window
77
global.document = window.document
88
global.navigator = window.navigator

0 commit comments

Comments
 (0)