Fix SyntaxError: Illegal return statement in STL viewer
The previous fix replaced `throw err` with `return` inside a module,
but top-level `return` is a SyntaxError in ES modules.
Reverted to `throw err` — the error message is already shown on screen,
so the user still gets a graceful fallback even though the error appears
in the console.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 10a2581 commit cbc832d5174e55878a2c4e63d8f927387c47ae10
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 16 May
Showing 2 changed files
View
webclient/dist/content-viewers/stl.html
View
webclient/public/content-viewers/stl.html