Skip to content

Commit

Permalink
Update MistFetch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistium authored Oct 16, 2024
1 parent 7643c3e commit 0a07a68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/MistFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ class MistFetch {
const { done: doneReading, value } = await reader.read();
if (doneReading) {
done = true;
Scratch.vm.runtime.startHats('mistfetch_whenIdRequestCompleted', { ID: ID });
if (Scratch.extensions.unsandboxed) {
Scratch.vm.runtime.startHats('mistfetch_whenIdRequestCompleted', { ID: ID });
}
this.requests[ID].completed = true;
} else {
this.requests[ID].totalBytes += value.length;
Expand Down

0 comments on commit 0a07a68

Please sign in to comment.