Skip to content

Commit c288c49

Browse files
committed
No-op privacy enforcement if using a vanilla renderer
also fixes tests
1 parent 2b265e5 commit c288c49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/engine/runtime.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ class Runtime extends EventEmitter {
470470
/**
471471
* If set to true, features such as reading colors from the user's webcam will be disabled
472472
* when the project has access to any external communication method to protect user privacy.
473+
* Requires TurboWarp/scratch-render.
473474
* Do not update this directly. Use Runtime.setEnforcePrivacy() instead.
474475
*/
475476
this.enforcePrivacy = true;
@@ -3173,7 +3174,7 @@ class Runtime extends EventEmitter {
31733174
this.enforcePrivacy &&
31743175
Object.values(this.externalCommunicationMethods).some(i => i)
31753176
);
3176-
if (this.renderer) {
3177+
if (this.renderer && this.renderer.setPrivateSkinAccess) {
31773178
this.renderer.setPrivateSkinAccess(!enforceRestrictions);
31783179
}
31793180
}

0 commit comments

Comments
 (0)