Skip to content

Commit 641cb0a

Browse files
committed
Update script.js
1 parent 89b34a7 commit 641cb0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/studio-creation-date/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function ({ feature }) {
22
ScratchTools.waitForElements(
33
".studio-info-footer-stats",
44
async function (footer) {
5-
if (!footer) return;
5+
if (document.querySelector(".ste-studio-created")) return;
66

77
const studioId = window.location.href.match(/studios\/(\d+)/)[1];
88
const apiUrl = `https://api.scratch.mit.edu/studios/${studioId}`;
@@ -31,6 +31,7 @@ export default function ({ feature }) {
3131

3232
const creationDateDiv = document.createElement("div");
3333
creationDateDiv.classList.add("studio-creation-date");
34+
creationDateDiv.classList.add("ste-studio-created")
3435

3536
const creationDateImg = document.createElement("img");
3637
creationDateImg.src = feature.self.getResource("calendar");

0 commit comments

Comments
 (0)