mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
ScriptedMethodsTest.html - Update to use JSB v2 CefSharp.BindObjectAsync
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user