Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05cb4a6013 | ||
|
|
c5a42e7681 |
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "13",
|
"minimum": "13",
|
||||||
"verified": "13.350",
|
"verified": "14",
|
||||||
"maximum": "13"
|
"maximum": "14"
|
||||||
},
|
},
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ class SlaGearCacheApp extends FormApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function installActorButton(app, html) {
|
function installActorButton(app, html) {
|
||||||
|
if (!game.user?.isGM) return;
|
||||||
const root = getHtmlRoot(html);
|
const root = getHtmlRoot(html);
|
||||||
const header = root?.querySelector(".directory-header .header-actions, .directory-header .action-buttons");
|
const header = root?.querySelector(".directory-header .header-actions, .directory-header .action-buttons");
|
||||||
if (!header || header.querySelector(".sla-gear-cache-open")) return;
|
if (!header || header.querySelector(".sla-gear-cache-open")) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user