Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
MOBILE-585 Avoid to delete information stored by the Simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Jun 30, 2014
1 parent f5db1df commit f901c7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<script language="javascript">
// Delete all the entries in local storage
for(var el in localStorage) {
localStorage.removeItem(el);
// Avoid to delete information stored by the Moodle Mobile Simulator.
if (el.indexOf("mms-") === -1) {
localStorage.removeItem(el);
}
}
// Redirect to maing page
location.href = "index.html";
Expand Down

0 comments on commit f901c7b

Please sign in to comment.