ranbuch / accessibility

add accessibility to your website
MIT License
291 stars 39 forks source link

Crashing React App #51

Closed Elijer closed 1 year ago

Elijer commented 1 year ago

I'm following the instructions to use this package:

  1. Download the package on npm (I've tried a couple of different versions)
  2. Added this line to the top level of my Javascript code: window.addEventListener('load', function() { new Accessibility(); }, false);

It strangely did work for a moment but it is now crashing the website it is embedded in and I can't figure out why. Has an issue like this been discovered before? Does it resemble any prior difficulties anyone has bad with this package?

FedyukRimon commented 1 year ago

@Elijer I faced the same issue, and it was solved by adding to options:

session: {
    persistent: false,
},
ranbuch commented 1 year ago

Hi @Elijer and @FedyukRimon . Can we close this issue?

FedyukRimon commented 1 year ago

@Elijer for you to decide as the author of the issue :)