Skip to content

Conversation

@takaokouji
Copy link

Summary

This PR addresses several console warnings that appeared when running the GUI in development mode.

Implementation details

  • Improve Log Suppression: Updated src/lib/log-suppression.js to check all arguments passed to console.warn and console.error. This ensures that formatted React warnings are correctly identified and suppressed. Added GenerateSW has been called multiple times to ignored warnings as well.
  • Address Deprecated Meta Tag: Added <meta name="mobile-web-app-capable" content="yes"> to src/playground/index.ejs to resolve the deprecation warning for apple-mobile-web-app-capable.
  • Lint Fixes: Resolved ESLint issues in log-suppression.js.

Test coverage

  • Verified that lint checks pass for modified files.

Co-Authored-By: Gemini noreply@google.com

takaokouji and others added 2 commits January 20, 2026 15:10
- Added src/lib/log-suppression.js to filter out specific console warnings.
- Imported suppression logic in main playground entry point and library index.
- Warnings suppressed include:
  - Object freezing is not supported by Opal
  - Canvas2D willReadFrequently attribute
  - React defaultProps deprecation (future-proofing)
  - React unknown prop recognition
  - Deprecated React lifecycle methods
  - findDOMNode deprecation
  - AudioContext user gesture requirement
  - apple-mobile-web-app-capable meta tag deprecation

🤖 Generated with [Gemini Code](https://gemini.google.com/code)

Co-Authored-By: Gemini <noreply@google.com>
- Improve log-suppression to check all console arguments
- Add GenerateSW warning to ignoredWarnings
- Add mobile-web-app-capable meta tag to address deprecation warning
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.

2 participants