Skip to content

Import xterm addons using script tag #4621

Answered by jerch
zamoosh asked this question in Q&A
Discussion options

You must be logged in to vote

Addons are currently bundled as UMD with a namespace object of the same name, e.g. for the fit addon the ctor is located under FitAddon.FitAddon. This is needed, as addons may export more than a ctor.

Sidenotes:

  • Plz fix the headline, atm it is totally unrelated to your question.
  • Your websocket is world readable and prolly writeable - not a good idea. Use wss:// along with access tokens or other auth mechs. Websockets are tricky when it comes to security, you should read into that or you will create a terminal endpoint accessible for anyone.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zamoosh
Comment options

Answer selected by zamoosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants