Remove the devMode settings and use the inDev flag instead

This commit is contained in:
Oliver 2025-12-24 20:21:32 -07:00
parent f1b23c54d8
commit 8ea22d7eaf
6 changed files with 3 additions and 39 deletions

View file

@ -71,7 +71,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) {
This is so that when we get an HMR event from Foundry we can appropriately
handle it using our logic to update the component and the icon cache.
*/
if (game.settings.get(`ripcrypt`, `devMode`)) {
if (game.system.flags.inDev) {
this.#svgHmr = Hooks.on(`${game.system.id}-hmr:svg`, (iconName, data) => {
if (this._name === iconName || this._path?.endsWith(data.path)) {
const svg = this.#parseSVG(data.content);