5E Product Walkthrough Playlist
  1. #1

    openURL second parameter optional?

    In the new openURL function, the documentation indicates that the second parameter for the callback function is optional. But if I try it without a callback function defined, I get an error of invalid parameter 2.
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  2. #2
    Can you try "nil" instead?

    JPG

  3. #3
    Quote Originally Posted by Moon Wizard View Post
    Can you try "nil" instead?

    JPG
    Yeah, that works.

    So Interface.openURL("https://someurl.com", nil) works

    I tried these which did not work
    Interface.openURL("https://someurl.com")
    Interface.openURL("https://someurl.com", "")

    thanks
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  4. #4
    I'll look at updating the code to check for the parameter existence first, but you can use nil for now.

    Regards,
    JPG

  5. #5
    Fixed in beta release today.

    Cheers,
    JPG

  6. #6
    Sorry to necro this thread, but when processing the callback, all I get is the URL and not the generated response. Did I miss something or is the generated response stored somewhere else?

  7. #7
    The callback will receive two parameters (sURL, sResponse).

    Regards,
    JPG

  8. #8
    Quote Originally Posted by Moon Wizard View Post
    The callback will receive two parameters (sURL, sResponse).

    Regards,
    JPG
    Thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in