Fixes #8. With the new version of P5, this library would broke the preload() function. This means that even if you do nothing with p5.geolocation, if you have instruction in the preload() function thee sketch won't work.
In the latest P5 version, prototype.registerPreloadMethod requires two parameters, see reference.
Tested with some basic sketches and it seems to work now. Maybe a deeper check would be needed.
Fixes #8. With the new version of P5, this library would broke the
preload()
function. This means that even if you do nothing with p5.geolocation, if you have instruction in thepreload()
function thee sketch won't work.In the latest P5 version,
prototype.registerPreloadMethod
requires two parameters, see reference.Tested with some basic sketches and it seems to work now. Maybe a deeper check would be needed.