Commit 54d1c2fc authored by Mathieu Giraud's avatar Mathieu Giraud

js/tips.js: .reset(), resets the seen tips

parent b551b7d6
......@@ -69,6 +69,12 @@ TipsOfTheDay.prototype = {
}
},
reset: function() {
this.seen = []
var storage = window.localStorage
storage.removeItem(this.storage_key)
},
is_unseen: function(id) {
return this.seen.indexOf(id) < 0;
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment