bgstaal / multipleWindow3dScene

A quick example of how one can "synchronize" a 3d scene across multiple windows using three.js and localStorage
MIT License
16.44k stars 2.56k forks source link

Improve code syntax + code formatting #35

Closed Matheus-gs closed 8 months ago

Matheus-gs commented 8 months ago

Hi! I just made some changes to improve code syntax and formatting.

First changes:

Replacing != with !== Replacing == with ===

To strictly check both value and type. This is generally a good practice if you want to ensure strict equality.

Second changes: Removing an unused event parameter

Last changes: Running alt + shift + f for better code formatting. Formatting the code consistently improves readability and makes it easier for others to understand.