However, it seems like unofficial extensions (what we are working on now) don't have access to the runtime, which is also discussed in this post.
Alternative options:
Find other ways to draw without using the runtime.
Work on a forked copy of Scratch GUI by making our extensions and registering the extensions in the forked codebase. However, we may need to explore ways to embed specific sections of Scratch in our own project as we do not want to redirect the user to a different page hosted on another domain.
Fixes #2
Some inspiration for the code is taken from here. To test the code, do the following:
However, it seems like unofficial extensions (what we are working on now) don't have access to the
runtime
, which is also discussed in this post.Alternative options:
runtime
.