<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=no"
    />
    <meta name="theme-color" content="#000000" />
    <!--
      manifest.json provides metadata used when your web app is added to the
      homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
    -->
    <link
      rel="manifest"
      href="./manifest.json"
      crossorigin="use-credentials"
    />
    <link rel="shortcut icon" href="./favicon.ico" />
    <title>{{ .KarmaName }}</title>
  </head>
  <body>
    <noscript>
      You need to enable JavaScript to run this app.
    </noscript>
    <!--
      Settings span is used to pass config keys that needs to be accessible
      early, before the UI app is started.
    -->
    <span
      id="settings"
      data-default-filters-base64="{{ .DefaultFilter }}"
    >
    </span>
    <div id="root"></div>
    <!--
      This HTML file is a template.
      If you open it directly in the browser, you will see an empty page.

      You can add webfonts, meta tags, or analytics to this file.
      The build step will place the bundled scripts into the <body> tag.

      To begin the development, run `npm start` or `yarn start`.
      To create a production bundle, use `npm run build` or `yarn build`.
    -->
    {{ if ne .CustomCSS "" }}
    <link
      rel="stylesheet"
      type="text/css"
      href="./custom.css"
      media="screen"
    />
    {{ end }}
    {{ if ne .CustomJS "" }}
    <script src="./custom.js"></script>
    {{ end }}
    <script type="text/plain" id="defaults">
      {{ .Defaults }}
    </script>
    <script type="module" src="/src/index.tsx"></script>
  </body>
</html>
