Skip to main content
Module

x/webview/src/ffi.ts

🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs
Go to Latest
import * as webview from "https://deno.land/x/webview@0.7.5/src/ffi.ts";

Variables

All active webview instances. This is internally used for automatically destroying all instances once unload is called.

Functions

Encodes a string to a null terminated string

Loads the ./WebView2Loader.dll for running on Windows. Removes old version if it already existed, and only runs once. Should be run on the main thread so that the unload gets hooked in properly, otherwise make sure unload gets called during the window.onunload event (after all windows are closed).

Unload the library and destroy all webview instances. Should only be run once all windows are closed. If preload was called in the main thread, this will automatically be called during the window.onunload event; otherwise, you may have to call this manually.