FIX: Scramble effect

This commit is contained in:
Robert Kossessa
2024-02-04 14:29:33 +01:00
parent 40f3edb796
commit d843f7c878

View File

@@ -86,7 +86,7 @@ function scramble(scrambleAmount = props.scrambleAmount, replaceInterval = props
let i = 0
const specChars = atob('S09TUk8tRUFTVEVSRUdH')
const fillContent = function() {
if (content.value.length < Math.max(text.length, specChars.length * spec)) {
if (content.value.length < text.length) {
const char = fillText.charAt(content.value.length) || ''
if (spec) {
content.value += specChars[i]