Skip to content

Commit

Permalink
🐛 fix: no unexpected workspace access
Browse files Browse the repository at this point in the history
Signed-off-by: SimonShiki <sinangentoo@gmail.com>
  • Loading branch information
SimonShiki committed Dec 3, 2023
1 parent 4211941 commit 5c17b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/injector/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export function inject (vm: EurekaCompatibleVM) {
if (!blockly) {
warn('Cannot find real blockly instance, try alternative method...');
const originalProcedureCallback =
window.Blockly?.getMainWorkspace().toolboxCategoryCallbacks_.PROCEDURE;
window.Blockly?.getMainWorkspace()?.toolboxCategoryCallbacks_?.PROCEDURE;
if (!originalProcedureCallback) {
error('alternative method failed, stop injecting');
return;
Expand Down

0 comments on commit 5c17b9b

Please sign in to comment.