reference Notifications from the new namespace

This commit is contained in:
Sven Balzer 2025-05-01 07:06:50 +02:00
parent 61bc68dd3c
commit 51235ebaf2

View File

@ -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 });
}
}