Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Webview properties example incorrectly calls setGlobal*Property #69

Open
shaddockh opened this issue May 30, 2016 · 0 comments
Open

Webview properties example incorrectly calls setGlobal*Property #69

shaddockh opened this issue May 30, 2016 · 0 comments

Comments

@shaddockh
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant