Skip to content

Conversation

@m-c-tech
Copy link

This removes the external SockJS CDN script tag from the Web UI templates so offline environments don’t depend on the internet. SockJS is already bundled via sockjs-client in the vendor bundle (imported in [vendor.ts]), so the UI loads it from the local vendor.*.js.
With this change, a machine with no internet access will still work as long as the local dist/ assets are served.

The Web UI server serves local dist assets directly.
It sets [STATIC_FILES_ROOT] to the web_gui/dist directory and registers a static file route for /css/, /js/, /img/*, and /service-worker.js, plus the index template from the same directory. See [web_gui_server.py:20-123].

This should resolve issue #1174

Remove the external sockjs-client CDN script tag from the source index template and the built dist index. SockJS remains bundled via the vendor bundle so the UI works fully offline when dist assets are served locally.
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.

1 participant