Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
desoindx committed Apr 16, 2024
2 parents 0c5639a + 185330f commit 1fcc95a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions detection/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const transform = (element: Element, darkMode?: boolean) => {
}

const hasImpact = regex.exec(element.innerHTML)
console.log(hasImpact, element.innerHTML)
if (hasImpact && hasImpact[1] !== '0') {
const etiquette = document.createElement('DIV')
etiquette.className = className
Expand Down Expand Up @@ -46,10 +45,10 @@ const transformText = (element: Element, darkMode?: boolean) => {
etiquette.classList.add('night')
}
const existingValues = child.textContent.split(hasImpact[0])
const before = document.createElement(element.tagName)
const before = document.createElement('DIV')
before.className = className
before.innerHTML = existingValues[0]
const after = document.createElement(element.tagName)
const after = document.createElement('DIV')
after.className = className
after.innerHTML = existingValues[1]
transform(after, darkMode)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"chromatic": "chromatic --exit-zero-on-changes"
},
"engines": {
"node": "20",
"node": ">=20",
"yarn": "1.22"
},
"dependencies": {
Expand Down

0 comments on commit 1fcc95a

Please sign in to comment.