Results 1 to 2 of 2

Thread: How do i fix this webview2 code

  1. #1

    Thread Starter
    Banned
    Join Date
    Jun 2022
    Posts
    149

    How do i fix this webview2 code

    Code:
    WV.ExecuteScript "document.cookie.split(';').forEach(function(c) { document.cookie = c.replace(/^ +/, '').replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/'); });"
    rtb1.text = WV.ExecuteScript "document.cookie.split(';').forEach(function(c) { document.cookie = c.replace(/^ +/, '').replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/'); });"
    expected end of statement error

  2. #2
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,160

    Re: How do i fix this webview2 code

    Code:
    rtb1.text = WV.ExecuteScript("document.cookie.split(';').forEach(function(c) { document.cookie = c.replace(/^ +/, '').replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/'); });")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width