To address incognito={true} not working on Android, in D6112 I introduced a "preamble" of sorts to landing that would reset localStorage.
Sometime since then this has stopped working (see ENG-9537). This diff makes two changes to bring it back:
- I had to move the preamble to a separate <script> tag in the returned HTML. I'm not sure why this was necessary, as my naive prior was that Webpack would execute the first lines of your entry first. But testing clearly revealed this to be necessary.
- I also had to add some lines to clear IndexedDB alongside localStorage.