kernl API
    Preparing search index...

    Function currentPageScheme

    • How the page running the shell was loaded, from location. Where there is no page, as in a host outside a browser, nothing restricts which addresses can be called, which is http's rule.

      Returns PageScheme

      https for a page loaded over it, otherwise http.

      currentPageScheme(); // 'https' on https://kernl.run/app/