platform-bible-react
    Preparing search index...

    Function isRunningInWebView

    • Experimental

      Whether this window is a web view, meaning it is not the top window. In a web view window.top is the host window: the web view's setup script deletes it, but top cannot be deleted, so the deletion does nothing (web-view.service-shard.ts, the imports string). The main document is its own top window. A missing or unreadable top also counts as a web view.

      Returns boolean

      true inside a web view (or when window.top is missing or unreadable), false in the main document This export is unstable and may change shape or disappear without notice