fixed linking
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
const {
|
||||
DAY_IN_MS,
|
||||
getDateKey,
|
||||
getDecanForDate,
|
||||
getMoonPhaseName,
|
||||
calcPlanetaryHoursForDayAndLocation
|
||||
} = window.TarotCalc;
|
||||
@@ -13,6 +14,7 @@
|
||||
typeof nowUiHelpers.findNextDecanTransition !== "function"
|
||||
|| typeof nowUiHelpers.findNextMoonPhaseTransition !== "function"
|
||||
|| typeof nowUiHelpers.formatCountdown !== "function"
|
||||
|| typeof nowUiHelpers.getSignStartDate !== "function"
|
||||
|| typeof nowUiHelpers.getDisplayTarotName !== "function"
|
||||
|| typeof nowUiHelpers.setNowCardImage !== "function"
|
||||
|| typeof nowUiHelpers.updateNowStats !== "function"
|
||||
@@ -128,7 +130,7 @@
|
||||
? `${sunInfo.sign.id}-${sunInfo.decan?.index || 1}`
|
||||
: "no-decan";
|
||||
if (sunInfo?.sign) {
|
||||
const signStartDate = getSignStartDate(now, sunInfo.sign);
|
||||
const signStartDate = nowUiHelpers.getSignStartDate(now, sunInfo.sign);
|
||||
const daysSinceSignStart = (now.getTime() - signStartDate.getTime()) / DAY_IN_MS;
|
||||
const signDegree = Math.min(29.9, Math.max(0, daysSinceSignStart));
|
||||
const signMajorName = nowUiHelpers.getDisplayTarotName(sunInfo.sign.tarot.majorArcana, sunInfo.sign.tarot.trumpNumber);
|
||||
|
||||
Reference in New Issue
Block a user