@jossmac/lil-libs
    Preparing search index...

    Function getDisplayMode

    • Detects the current PWA or browser display mode via display-mode media queries.

      Possible values: "fullscreen", "minimal-ui", "picture-in-picture", "standalone", "window-controls-overlay", and "browser".

      The current display-mode ("fullscreen", "standalone", etc.), or "browser" when no media query matches or outside the browser.

      getDisplayMode();
      // e.g. "browser" in a tab, "standalone" in an installed PWA