Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Dec 27, 2024
1 parent fc902ee commit 61de366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PuppeteerSharp/IsolatedWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ internal override async Task<IJSHandle> TransferHandleAsync(IJSHandle handle)

internal override async Task<IJSHandle> AdoptHandleAsync(IJSHandle handle)
{
var cdpHandle = (CdpJSHandle)handle;
if (cdpHandle.Realm == this)
var cdpHandle = (ICdpHandle)handle;
if (((JSHandle)cdpHandle).Realm == this)
{
return handle;
}
Expand Down

0 comments on commit 61de366

Please sign in to comment.