node-gtk icon indicating copy to clipboard operation
node-gtk copied to clipboard

TypeError: view.loadHtml is not a function

Open remymiguk opened this issue 5 years ago • 0 comments

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

remymiguk avatar May 17 '20 22:05 remymiguk