Skip to content

Commit

Permalink
Update moduleps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinTheKittyCat committed Feb 19, 2023
1 parent 48d72b8 commit 0155846
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions moduleps.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function checkIfSettingsExists() {

const changedModules = modules
Object.keys(changedModules).forEach((m) => {
if (changedModules[m] === "module-presets") changedModules[m] = true
if (m === "module-presets") changedModules[m] = true
})

const OnlyPresetModule = { title: "Only Presets Module", id: "Only Preset", content: changedModules, stringified }
Expand All @@ -84,13 +84,6 @@ function checkIfSettingsExists() {

game.settings.set("modulePresets", "presets", { presets: [noModules, OnlyPresetModule] })
}

if (Object.keys(setting).length === 0) {
const modules = game.settings.get("core", "moduleConfiguration")
Object.keys(modules).forEach((m) => { modules[m] = false })
const stringified = "No Modules"// JSON.stringify(content)
game.settings.set("modulePresets", "presets", { presets: [{ title: "No Modules", id: "No Modules", content: modules, stringified }] })
}
}

export class StorageFormApplication extends FormApplication {
Expand Down

0 comments on commit 0155846

Please sign in to comment.