You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extras/popup/popup.js
+73Lines changed: 73 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -596,6 +596,19 @@ async function getFeatures() {
596
596
span.className="new-feature-tag updated";
597
597
div.appendChild(span);
598
598
}
599
+
if(feature.tags?.includes("Beta")){
600
+
varspan=document.createElement("span");
601
+
span.textContent="Beta";
602
+
span.className="new-feature-tag beta";
603
+
div.appendChild(span);
604
+
span.addEventListener("click",function(){
605
+
ScratchTools.modals.create({
606
+
title: "Beta feature",
607
+
description:
608
+
"This feature is currently in a beta stage, and may have small bugs that weren't noticed during testing. There may also be changes/improvements to come soon.",
609
+
});
610
+
});
611
+
}
599
612
600
613
varlabel=document.createElement("label");
601
614
label.className="switch";
@@ -788,6 +801,8 @@ async function getFeatures() {
0 commit comments