Closes db when the page is hidden. An open IndexedDB connection keeps a page out of the back/forward cache, so the page reopens it on the next use. Returns a function that removes the listener.
db
Closes
dbwhen the page is hidden. An open IndexedDB connection keeps a page out of the back/forward cache, so the page reopens it on the next use. Returns a function that removes the listener.