update commit message
This commit is contained in:
+9
-2
@@ -30,6 +30,10 @@
|
||||
lettersById: new Map()
|
||||
};
|
||||
|
||||
function hasTarotAccess() {
|
||||
return window.TarotAppConfig?.hasTarotAccess?.() === true;
|
||||
}
|
||||
|
||||
function getElements() {
|
||||
return {
|
||||
listEl: document.getElementById("enochian-list"),
|
||||
@@ -306,10 +310,13 @@
|
||||
const detailRows = [
|
||||
["Pronunciation", letterData.pronounciation],
|
||||
["Planet / Element", letterData["planet/element"]],
|
||||
["Tarot", letterData.tarot],
|
||||
["Gematria", letterData.gematria]
|
||||
];
|
||||
|
||||
if (hasTarotAccess()) {
|
||||
detailRows.splice(2, 0, ["Tarot", letterData.tarot]);
|
||||
}
|
||||
|
||||
detailRows.forEach(([label, value]) => {
|
||||
if (value === undefined || value === null || String(value).trim() === "") {
|
||||
return;
|
||||
@@ -324,7 +331,7 @@
|
||||
navRow.className = "enoch-letter-row";
|
||||
|
||||
const tarotCardName = resolveTarotCardName(letterData.tarot);
|
||||
if (tarotCardName) {
|
||||
if (hasTarotAccess() && tarotCardName) {
|
||||
const tarotBtn = document.createElement("button");
|
||||
tarotBtn.type = "button";
|
||||
tarotBtn.className = "enoch-nav-btn";
|
||||
|
||||
Reference in New Issue
Block a user