Remove the devMode settings and use the inDev flag instead
This commit is contained in:
parent
f1b23c54d8
commit
8ea22d7eaf
6 changed files with 3 additions and 39 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue