AtomicExamples icon indicating copy to clipboard operation
AtomicExamples copied to clipboard

Webview properties example incorrectly calls setGlobal*Property

Open shaddockh opened this issue 8 years ago • 0 comments

The setGlobal*Property calls are static methods on the WebView.WebBrowserHost object and are being called on the WebView.browserHost instance. This works fine for JavaScript, but TypeScript complains about it.

// Setup some global JS properties that will be available on every page loaded
// into the WebView
WebView.browserHost.setGlobalBoolProperty("WebViewExample", "boolValue", true);
WebView.browserHost.setGlobalNumberProperty("WebViewExample", "numberValue", 42);
WebView.browserHost.setGlobalStringProperty("WebViewExample", "stringValue", "Hello World!");

Needs to be updated.

shaddockh avatar May 30 '16 01:05 shaddockh