Javascript error in Safari

Dear all,
I spotted a small bug in the WP plugin:

                    return JSON.parse(r.localStorage[c])[e] || null

This line returns a JSON parse error in Safari. You can see it live here: https://me.eui.eu/olivier-roy/publications-cadmus/

Thanks a lot and keep up the great work,
Emanuele

Hi @eui,

Thanks for spotting that. This is indeed a bug in the instantsearch.js library which we updated on the Algolia plugin for WordPress.
We havent release the plugin yet, and the fix should be available as part of 1.8.0.

In the meantime, you could copy the JS files of the develop branch into your project and replace the existing ones: https://github.com/algolia/algoliasearch-wordpress/tree/develop/assets/js