In my web app, which is based on Electron, I use IndexedDB. If I copy the entire project over to a separate directory and run it while the original copy is running, the IndexedDB API complains that it cannot open the database. Only if I close the first app will the second app be able to run without problems.
This raises the question as to how IndexedDB treats files. Even if I give each database their own name, the problem still exists. Electron uses the file protocol for accessing urls. How does IndexedDB handle normal web apps that don't use the file protocol but rather http/https? Clearly each app has its own database and can access it without conflicts with other databases. So why does a file based web app behave differently? Is there anything I can do to make both copies of my app work with separate indexedDB databases?