1.2.14 • Published 4 years ago
@softvisio/webview v1.2.14
:information_source: Please, see the full project documentation here: https://softvisio.github.io/webview/.
Introduction
NodeJS wrapper for webview.
Compiled binaries: suchipi/webview.
Install
npm i @softvisio/webviewUsage
import WebView from "@softvisio/webview";
const webView = new WebView("https://example.com/", { title: "Example", width: 400, height: 400 });
webView.on("close", () => {});
webView.close();Notes
Windows
On windows, the webview will not be able to access localhost unless the following command has been run as administrator at least once before:
checknetisolation.exe LoopbackExempt -a -n=Microsoft.Win32WebViewHost_cw5n1h2txyewycurl -sSLO https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
nuget.exe install Microsoft.Web.Webview2 -OutputDirectory script
cl -DSFML_STATIC /std:c++17 /EHsc /I script\Microsoft.Web.WebView2.1.0.1185.39\build\native\include script\Microsoft.Web.WebView2.1.0.1185.39\build\native\x64\WebView2Loader.dll.lib main.cc /link /out:webview.exeLinux
On Linux, you need to install GTK3 and GtkWebkit2.
sudo apt-get install libwebkit2gtk-4.0-dev1.2.13
4 years ago
1.2.14
4 years ago
1.2.8
4 years ago
1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.9
4 years ago
1.2.12
4 years ago
1.2.10
4 years ago
1.2.11
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago