From e90ea34898c3cea9e021364cc1f706efada561c9 Mon Sep 17 00:00:00 2001 From: Daniel Stirba Date: Mon, 6 Feb 2023 20:14:18 +1100 Subject: [PATCH] Fixed issue with names copying incorrectly --- manifest.json | 2 +- modal.ts | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 8863ff7..48fb113 100644 --- a/manifest.json +++ b/manifest.json @@ -7,5 +7,5 @@ "author": "Obsidian", "authorUrl": "https://obsidian.md", "fundingUrl": "https://obsidian.md/pricing", - "isDesktopOnly": true + "isDesktopOnly": false } diff --git a/modal.ts b/modal.ts index 21ab4b5..c6d549d 100644 --- a/modal.ts +++ b/modal.ts @@ -108,9 +108,6 @@ export class GeneratorModal extends Modal { genSettings.race = raceSelected; settingsdiv.innerHTML = ""; settingsdiv.createEl("h3", { text: "Customise The Generation" }); - let firstName; - let familyName = ''; - let fullName = ''; new Setting(settingsdiv) .setName("Male or Female?") .addDropdown((drop) => { @@ -138,7 +135,9 @@ export class GeneratorModal extends Modal { .setCta() .onClick(()=>{ for (let index = 0; index < genAmount; index++) { - + let firstName; + let familyName = ''; + let fullName = ''; if (pathfinderFilter.includes(genSettings.race)) { fullName = generatePathfinderName(genSettings.race, genSettings.gender, genSettings.multiNames);