love.js icon indicating copy to clipboard operation
love.js copied to clipboard

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

Open Davidobot opened this issue 5 years ago • 1 comments

In firefox private browsing mode

Davidobot avatar Nov 10 '20 16:11 Davidobot

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.

asiekierka avatar Oct 11 '22 17:10 asiekierka