Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

1.3 KB
Raw Blame
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Switch Console</title>
    <script>
      (function () {
        try {
          var raw = localStorage.getItem('switchdash-theme');
          var pref = raw ? JSON.parse(raw) : null;
          var effective =
            pref === 'emlight' || pref === 'emdark'
              ? pref
              : window.matchMedia('(prefers-color-scheme: dark)').matches
                ? 'emdark'
                : 'emlight';
          document.documentElement.classList.add(effective);
        } catch (_) {}
        try {
          // Paired with the `vibrancy` branch in main/app/window.ts: only
          // macOS gets a translucent window, so only there may the renderer
          // leave the material see-through. Anywhere else the same colour has
          // to be opaque, or the window shows the desktop through an effect
          // the compositor never applied.
          if (navigator.userAgent.indexOf('Macintosh') !== -1) {
            document.documentElement.classList.add('has-vibrancy');
          }
        } catch (_) {}
      })();
    </script>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="./main.tsx"></script>
  </body>
</html>