Skip to content

Commit

Permalink
Update logic.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Jan 16, 2024
1 parent a098e33 commit ebabb1b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,7 @@ export class Polyglot {
*/
scrambleString(string, salt, lang) {
let language = this.languageProvider.languages[lang];
if (!language) {
language = { rng: "default" };
}
const rng = language.rng ?? "default";
const rng = language?.rng ?? "default";
if (rng === "none") return string;
if (rng === "default") salt = lang;
// const font = this._getFontStyle(lang).replace(/\d+%\s/g, "");
Expand Down

0 comments on commit ebabb1b

Please sign in to comment.