node-gtk
node-gtk copied to clipboard
TypeError: view.loadHtml is not a function
hi guys, im tying to load html string with https://webkitgtk.org/reference/webkit2gtk/2.5.1/WebKitWebView.html#webkit-web-view-load-html but I get :
"view.loadHtml({content: html}) TypeError: view.loadHtml is not a function"
here my code : var view = new WebKit2.WebView() view.loadHtml({content: html}). so I wonder what is the correct syntax ? thanks a lot