Accessing old cordova app localstorage from 'file:///'

I’m upgrading quite an old app which stores data using localstorage, and runs at ‘file:///’

The new version, using capacitor runs at http://localhost/home

Can anyone think of a way to access the localstorage data that was previous stored in the file:/// domain?

Thanks