diff options
author | aszlig <aszlig@nix.build> | 2019-02-13 18:34:48 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2019-02-13 18:34:48 +0100 |
commit | 982f16d913c55eb474eb8a9f2b93cb78554f6eae (patch) | |
tree | 562f15335e577f93de93b3a3fa2dc353389fefd0 /pkgs/games/gog/default.nix | |
parent | 8bf8d1091af819f98759ae7e83f44354030efed6 (diff) |
fetchHumbleBundle: Fix getting recaptcha response
The object in question to get the response from the Recaptcha widget is now called "grecaptcha" instead of just "captcha" and the method to call now is also called "getResponse" instead of "get_response". Another change is that the grecaptcha object isn't available immediately once the page is loaded, so I added a try...catch loop for that. I know it's evil to do that, but I tried to check just for whether grecaptcha is available and then call the getResponse method but found out that during object construction there is a small time window where getResponse is available but isn't a callable method. There is still another issue with the HB fetcher, but the first step is hereby fixed. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/gog/default.nix')
0 files changed, 0 insertions, 0 deletions