ScriptedMethodsTest.html - Update to use JSB v2 CefSharp.BindObjectAsync

This commit is contained in:
amaitland
2018-02-07 10:16:19 +10:00
parent e7002a7874
commit df1ab21c01
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -119,7 +119,9 @@ namespace CefSharp.Example
// Scripts should be minified for production builds. The script
// could also be read from a file...
var script =
@"(function () {
@"(async function ()
{
await CefSharp.BindObjectAsync('boundEvent');
var counter = 0;
var elem = document.getElementById('##ID##');
elem.removeAttribute('disabled');