We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b34a7 commit 641cb0aCopy full SHA for 641cb0a
1 file changed
features/studio-creation-date/script.js
@@ -2,7 +2,7 @@ export default function ({ feature }) {
2
ScratchTools.waitForElements(
3
".studio-info-footer-stats",
4
async function (footer) {
5
- if (!footer) return;
+ if (document.querySelector(".ste-studio-created")) return;
6
7
const studioId = window.location.href.match(/studios\/(\d+)/)[1];
8
const apiUrl = `https://api.scratch.mit.edu/studios/${studioId}`;
@@ -31,6 +31,7 @@ export default function ({ feature }) {
31
32
const creationDateDiv = document.createElement("div");
33
creationDateDiv.classList.add("studio-creation-date");
34
+ creationDateDiv.classList.add("ste-studio-created")
35
36
const creationDateImg = document.createElement("img");
37
creationDateImg.src = feature.self.getResource("calendar");
0 commit comments