-
May 3rd, 2022, 19:50 #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
-
May 3rd, 2022, 20:01 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,558
Can you try "nil" instead?
JPG
-
May 3rd, 2022, 20:03 #3For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
May 3rd, 2022, 20:06 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,558
I'll look at updating the code to check for the parameter existence first, but you can use nil for now.
Regards,
JPG
-
May 6th, 2022, 19:09 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,558
Fixed in beta release today.
Cheers,
JPG
-
March 26th, 2023, 19:10 #6
- Join Date
- Dec 2017
- Posts
- 5
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?
-
March 26th, 2023, 23:42 #7
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,558
The callback will receive two parameters (sURL, sResponse).
Regards,
JPG
-
March 27th, 2023, 00:34 #8
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks