Skip to content

fix : removed undefined mesh2 references in hero-canvas.js - #1837

Closed
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1832
Closed

fix : removed undefined mesh2 references in hero-canvas.js#1837
tmdeveloper007 wants to merge 1 commit into
steam-bell-92:mainfrom
tmdeveloper007:pr1832

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

Removed references to undefined mesh2 variable in web-app/js/hero-canvas.js that caused JavaScript ReferenceErrors when changing theme or navigating away from the page.

File changed: web-app/js/hero-canvas.js

Changes Made

  • Removed if (mesh2 && typeof mesh2.onThemeChange === 'function') mesh2.onThemeChange(); from theme change observer callback
  • Removed if (mesh2 && typeof mesh2.destroy === 'function') mesh2.destroy(); from beforeunload handler
  • Only mesh1 is created and used; mesh2 was never defined

Impact it Made

  • Theme changes and page navigation no longer throw ReferenceErrors
  • Cleaner JavaScript execution without console errors

Closes #1832

Note

Please assign this PR to the tmdeveloper007 account.

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug : hero-canvas.js throws ReferenceError for undefined mesh2 variable on theme change

2 participants