Skip to content

Commit e8fa05e

Browse files
authored
Merge pull request #961 from Masaabu/fix-feature-traps-paint-cant-get
Fix API`feature.traps.paint()` can't get
2 parents aaeda27 + 97e6ce1 commit e8fa05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/vm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ScratchTools.Scratch.waitForContextMenu = function (info) {
176176
};
177177

178178
ScratchTools.Scratch.scratchPaint = function () {
179-
var app = document.querySelector(".paint-editor_mode-selector_28iiQ");
179+
var app = document.querySelector(".paint-editor_mode-selector_28iiQ")||document.querySelector(".paint-editor_mode-selector_O2uhP")||document.querySelector("[class*='paint-editor_mode-selector_']");
180180
if (app !== null) {
181181
return (
182182
app[

0 commit comments

Comments
 (0)