Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/webview/mod.ts>preload

๐ŸŒ Deno bindings for webview, a tiny library for creating web-based desktop GUIs
Go to Latest
function preload
import { preload } from "https://deno.land/x/webview@0.7.5/mod.ts";

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).

Does not need to be run on non-windows platforms, but that is subject to change.