Skip to content

Winside API Reference

Spatchy edited this page Feb 1, 2023 · 6 revisions

Winside API Overview

The Winside API is a collection of functions exposed to a Winsert on the window.WinsertAPI object. These functions allow for special functionality for Winserts to perform actions on a user's device outside of the Winsert's own sandbox.

Reference

closeSidebar

window.WinsertAPI.closeSidebar()

Will close the Active Winsert's sidebar as if the exit button was pressed.

  • Params: none
  • Returns: none

openLinkInBrowser

window.WinsertAPI.openLinkInBrowser(url)

Will open the given url in the user's default browser. (The sidebar will not be closed)

  • Params:
    • url: <string> | The URI the browser will navigate to.
  • Returns: none

Clone this wiki locally