- From: Joshua Bell <notifications@github.com>
- Date: Fri, 06 Jan 2017 16:07:32 -0800
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 7 January 2017 00:08:38 UTC
inexorabletash commented on this pull request.
> + displayMessage("Please reload this page for the latest version.");
+ }
+ });
+};
+
+function saveUnsavedData() {
+ // How you do this depends on your app.
+}
+
+function displayMessage() {
+ // Show a non-modal message to the user.
+}
+</pre>
+
+Another way is to call the database's close method. Other code on your page
+should react to the database's "close" event, so it knows the database is no
And therefore it might be worth adding a note to the `onclose` definition that it's only fired in abnormal close scenarios. Look for the _forced close_ flag.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/133
Received on Saturday, 7 January 2017 00:08:38 UTC