From f0221a7492fd2f122c96791b742331f8c81c5639 Mon Sep 17 00:00:00 2001 From: Saint-dev Date: Wed, 14 Apr 2021 11:41:24 -0400 Subject: [PATCH] fixed bug with certain funbox modes --- src/js/test/test-logic.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/test/test-logic.js b/src/js/test/test-logic.js index 0bde734ed..9a071f354 100644 --- a/src/js/test/test-logic.js +++ b/src/js/test/test-logic.js @@ -439,7 +439,7 @@ export async function init() { } } - if (Funbox.active === "rAnDoMcAsE") { + if (Funbox.funboxSaved === "rAnDoMcAsE") { let randomcaseword = ""; for (let i = 0; i < randomWord.length; i++) { if (i % 2 != 0) { @@ -449,17 +449,17 @@ export async function init() { } } randomWord = randomcaseword; - } else if (Funbox.active === "gibberish") { + } else if (Funbox.funboxSaved === "gibberish") { randomWord = Misc.getGibberish(); - } else if (Funbox.active === "58008") { + } else if (Funbox.funboxSaved === "58008") { UpdateConfig.setPunctuation(false, true); UpdateConfig.setNumbers(false, true); randomWord = Misc.getNumbers(7); - } else if (Funbox.active === "specials") { + } else if (Funbox.funboxSaved === "specials") { UpdateConfig.setPunctuation(false, true); UpdateConfig.setNumbers(false, true); randomWord = Misc.getSpecials(); - } else if (Funbox.active === "ascii") { + } else if (Funbox.funboxSaved === "ascii") { UpdateConfig.setPunctuation(false, true); UpdateConfig.setNumbers(false, true); randomWord = Misc.getASCII();