Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: guard window reference in kidlisp paint for worker context

kidlisp.mjs runs inside the disk worker where window is undefined;
the unguarded window.acKEEP_MODE check was throwing every frame.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+1 -1
+1 -1
system/public/aesthetic.computer/lib/kidlisp.mjs
··· 4409 4409 $.screen.pixels = this.displayBuffer.pixels; 4410 4410 4411 4411 // 🚨 Display validation errors at bottom of screen (skip in embed/projection/keep-bundle mode) 4412 - const isProjectionMode = (typeof location !== 'undefined' && location.search?.indexOf('nolabel') > -1) || !!window.acKEEP_MODE; 4412 + const isProjectionMode = (typeof location !== 'undefined' && location.search?.indexOf('nolabel') > -1) || (typeof window !== 'undefined' && !!window.acKEEP_MODE); 4413 4413 if (this.lastValidationErrors && this.lastValidationErrors.length > 0 && !isProjectionMode) { 4414 4414 const errorText = `❌ ${this.lastValidationErrors.join(', ')}`; 4415 4415 const textY = $.screen.height - 10; // 10 pixels from bottom