Skip to content

Commit

Permalink
Merge pull request #108 from vtt-lair/feat/v12
Browse files Browse the repository at this point in the history
fix: change depreciated objects/functions
  • Loading branch information
vtt-lair authored Sep 2, 2024
2 parents a4b6770 + eab0860 commit 2c98a77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/token-replacer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let tr_usedTokenizer = false;
// Token Replacer Setup Menu
class TokenReplacerSetup extends FormApplication {
static get defaultOptions() {
return mergeObject(
return foundry.utils.mergeObject(
super.defaultOptions,
{
title : game.i18n.localize("TR.Settings.Title.Name"),
Expand Down Expand Up @@ -87,7 +87,7 @@ class TokenReplacerSetup extends FormApplication {
}

for (let [mapIterator, setting] of settings.filter(([mapIterator, setting]) => mapIterator.includes('token-replacer'))){
const s = duplicate(setting);
const s = foundry.utils.duplicate(setting);
s.name = game.i18n.localize(s.name);
s.hint = game.i18n.localize(s.hint);
s.value = game.settings.get(s[moduleField], s.key);
Expand Down

0 comments on commit 2c98a77

Please sign in to comment.