From 51235ebaf20a0e6e21e3ee6c5110e2a1fd0a541e Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Thu, 1 May 2025 07:06:50 +0200 Subject: [PATCH] reference Notifications from the new namespace --- src/main.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.mjs b/src/main.mjs index 5037138..f1c85f5 100644 --- a/src/main.mjs +++ b/src/main.mjs @@ -2,6 +2,7 @@ const { TypeDataModel } = foundry.abstract; const { SchemaField, NumberField, StringField, BooleanField } = foundry.data.fields; const { ActorSheetV2, ItemSheetV2 } = foundry.applications.sheets; const { ApplicationV2, HandlebarsApplicationMixin } = foundry.applications.api; +const { Notifications } = foundry.applications.ui; const { OperatorTerm, NumericTerm } = foundry.dice.terms; Hooks.once("i18nInit", async function() { @@ -18,7 +19,7 @@ class DSA41_Notifications extends Notifications { notify(message, type="info", {localize=false, permanent=false, console=true}={}) { if (permanent && message === "ERROR.RESOLUTION.Window") return; - + return super.notify(message, type, { localize, permanent, console }); } }