Skip to content

Commit 4cbaef0

Browse files
author
Yanik Kumar
committed
hide the beta tag for main release
1 parent 4649cab commit 4cbaef0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@
458458
>❤️ Sponsor</a
459459
>
460460
</div>
461-
<div class="alert warning">
461+
<div class="alert warning" id="beta-warning">
462462
🚧 SproutPHP is currently in beta (<code class="sproutphp-version"
463463
>...</code
464464
>). Expect changes and improvements.
@@ -578,6 +578,13 @@
578578
versionSpans.forEach(function (span) {
579579
span.textContent = version;
580580
});
581+
// Show/hide beta warning
582+
var betaWarning = document.getElementById("beta-warning");
583+
if (version.includes("beta") || version.includes("pre-release")) {
584+
betaWarning.style.display = "block";
585+
} else {
586+
betaWarning.style.display = "none";
587+
}
581588
}
582589
})
583590
.catch(() => {

0 commit comments

Comments
 (0)