We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615eb74 commit 729b056Copy full SHA for 729b056
features/bitmap-default/script.js
@@ -2,8 +2,9 @@ export default async function ({ feature }) {
2
ScratchTools.waitForElements("body", () => {
3
const observer = new MutationObserver(() => {
4
const bitmapButton = document.querySelector(".paint-editor_bitmap-button_OEHDO");
5
- if (bitmapButton && feature.self.enabled) {
+ if (bitmapButton && feature.self.enabled && !bitmapButton.classList.contains("clicked")) {
6
bitmapButton.click();
7
+ bitmapButton.classList.add("clicked");
8
}
9
});
10
observer.observe(document.body, { childList: true, subtree: true });
0 commit comments