Skip to content

Commit

Permalink
Save offline queue in local storage on browser/tab exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergi Mansilla committed May 25, 2012
1 parent 54f093d commit fa7b443
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins-client/ext.revisions/revisions.js
Expand Up @@ -263,6 +263,10 @@ module.exports = ext.register("ext/revisions/revisions", {
self.panel = ceEditor.parentNode.appendChild(self.panel);
revisionsPanel.appendChild(pgRevisions);
});

apf.addEventListener("exit", function() {
localStorage.offlineQueue = JSON.stringify(this.offlineQueue);
});

this.$afterSelectFn = this.afterSelect.bind(this);
lstRevisions.addEventListener("afterselect", this.$afterSelectFn);
Expand Down

0 comments on commit fa7b443

Please sign in to comment.