crosh: Use terminalPrivate.openOptionsPage() if running as SWA

When crosh is running as a System Web App, we do not want it to use
regular tabs in ash-crhome.  It will be launched in a tabbed SWA frame
just like Terminal, and it should use the Terminal settings page rather
than calling and showing the nassh settings page.

Bug: 1161413
Change-Id: I2bc2664ee0cba213f34b1ba8157a4c3702d7bbd6
Reviewed-by: Mike Frysinger <>
Tested-by: kokoro <>
1 file changed
tree: d111967f54cfd9d6543c862b3ac3e73fc4f245e1
  1. .clang-format
  2. .eslintrc.js
  3. .gitignore
  4. .markdownlintrc
  5. .npmrc
  6. .pylintrc
  7. CPPLINT.cfg
  8. Dockerfile
  11. OWNERS
  12. PRESUBMIT.cfg
  14. hterm/
  15. kokoro/
  16. libdot/
  17. nassh/
  19. package.json
  20. ssh_client/
  21. terminal/
  22. wasi-js-bindings/
  23. wassh/


This repository contains the libdot JavaScript library and some web applications that make use of it.

The official copy of this repository is hosted at

There is also a mirror on github at A few subprojects are also extracted out into their own git repo and mirrored. Keep in mind that these mirrors may occasionally be behind the official repository.

All changes must go through the Gerrit code review server on Github pull requests cannot be accepted. Please see the document in this directory for the details.

Top level directories

  • libdot/ is a small set of JS libraries initially developed as part of hterm, now available as shared code.

  • hterm/ is a JS library that provides a terminal emulator. It is reasonably fast, reasonably correct, and reasonably portable across browsers.

  • nassh/ is the Secure Shell Chrome extension that combines hterm with a NaCl build of OpenSSH to provide a PuTTY-like app for Chrome users.

  • ssh_client/ is the NaCl port of OpenSSH. It is used by nassh to create the Secure Shell App.