Add dev-only hook to remove the core software update notification because it annoys me
This commit is contained in:
parent
500eabc755
commit
849da4bb54
3 changed files with 8 additions and 1 deletions
1
dev/dev.mjs
Normal file
1
dev/dev.mjs
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
import "./hooks/renderSettings.mjs";
|
||||||
5
dev/hooks/renderSettings.mjs
Normal file
5
dev/hooks/renderSettings.mjs
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Hooks.on(`renderSettings`, (app, html, ctx, options) => {
|
||||||
|
/** @type {HTMLElement|undefined} */
|
||||||
|
const coreUpdateTooltip = html.querySelector(`.build .value a`);
|
||||||
|
coreUpdateTooltip?.remove();
|
||||||
|
});
|
||||||
|
|
@ -15,7 +15,8 @@
|
||||||
{ "name": "Oliver" }
|
{ "name": "Oliver" }
|
||||||
],
|
],
|
||||||
"esmodules": [
|
"esmodules": [
|
||||||
"module/main.mjs"
|
"module/main.mjs",
|
||||||
|
"dev/dev.mjs"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue