Permalink
Browse files

Use correct way to clear localStorage items.

  • Loading branch information...
1 parent 346b80e commit e5da0d0f611f6670acbe674972d794e1bda31549 @miracle2k committed Jun 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/js/app.js
View
@@ -195,8 +195,8 @@ ELRCMaker.prototype.loadAudio = function(url, filename, initial) {
// localStorage['audio'] = url;
// localStorage['audioFilename'] = filename;
//}
- localStorage['audio'] = null;
- localStorage['audioFilename'] = null;
+ localStorage.removeItem('audio');
+ localStorage.removeItem('audioFilename');
}
/**

0 comments on commit e5da0d0

Please sign in to comment.