Skip to content

Commit

Permalink
Merge pull request #961 from Masaabu/fix-feature-traps-paint-cant-get
Browse files Browse the repository at this point in the history
Fix API`feature.traps.paint()` can't get
  • Loading branch information
rgantzos authored Nov 30, 2024
2 parents aaeda27 + 97e6ce1 commit e8fa05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ ScratchTools.Scratch.waitForContextMenu = function (info) {
};

ScratchTools.Scratch.scratchPaint = function () {
var app = document.querySelector(".paint-editor_mode-selector_28iiQ");
var app = document.querySelector(".paint-editor_mode-selector_28iiQ")||document.querySelector(".paint-editor_mode-selector_O2uhP")||document.querySelector("[class*='paint-editor_mode-selector_']");
if (app !== null) {
return (
app[
Expand Down

0 comments on commit e8fa05e

Please sign in to comment.