Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
624 stars 28 forks source link

DOMException: A mutation operation was attempted on a database that did not allow mutations. #19

Open Davidobot opened 3 years ago

Davidobot commented 3 years ago

In firefox private browsing mode

asiekierka commented 2 years ago

This is caused by IndexedDB being severely nerfed in private browsing modes, both on Firefox and Chromium-based engines.

I work around this in the Zeta ZZT emulator by detecting exceptions thrown during IndexedDB initialization logic and switching to a plain JavaScript object-based, non-persistent database.