|
|
@ -95,7 +95,7 @@ private string registerName = "webContext"; |
|
|
|
if (args.PermissionKind == CoreWebView2PermissionKind.ClipboardRead) |
|
|
|
args.State = CoreWebView2PermissionState.Allow; |
|
|
|
}; |
|
|
|
w2m.wb2.CoreWebView2.AddHostObjectToScript(registerName, this.globalContext); |
|
|
|
w2m.wb2.CoreWebView2.AddHostObjectToScript("webContext", this.globalContext); |
|
|
|
}; |
|
|
|
|
|
|
|
w2m.Init(); |
|
|
|