Skip to content

Commit 5ace89d

Browse files
committed
wait for blockly to exist
1 parent 7c66f24 commit 5ace89d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/addons/addons/toolbox-category-drag/userscript.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Toolbox Category Drag
22
// By: SharkPool
3-
export default async function () {
3+
export default async function ({ addon }) {
4+
// wait for scratchblocks to be defined
5+
await addon.tab.traps.getBlockly();
6+
47
const COMMENT_TRAPPER_ID = "--Category_Order_ADDON-config";
58
const soup = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
69

0 commit comments

Comments
 (0)