Add a hook listener to prevent invasive tweaks from OFT during development
This commit is contained in:
parent
ef719d4892
commit
07cba3d409
2 changed files with 8 additions and 0 deletions
7
dev/hooks/oft.preRegisterTweak.mjs
Normal file
7
dev/hooks/oft.preRegisterTweak.mjs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
This is to prevent my tweaks module from adding invasive tweaks during development
|
||||
of the system. But allowing all of the non-invasive tweaks to be used.
|
||||
*/
|
||||
Hooks.on(`oft.preRegisterTweak`, (tweak, invasive) => {
|
||||
return !invasive;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue