Save audio metadata, after extraction

Fixes #260
This commit is contained in:
DC
2016-03-30 20:44:09 -07:00
parent d1806d9503
commit af783e0532
4 changed files with 25 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ LocationHistory.prototype._go = function (page) {
this._pending = page
page.onbeforeload((err) => {
if (err) return
if (this._pending !== page) return /* navigation was cancelled */
this._pending = null
this._history.push(page)
})
@@ -67,3 +68,7 @@ LocationHistory.prototype.hasForward = function () {
LocationHistory.prototype.pending = function () {
return this._pending
}
LocationHistory.prototype.clearPending = function () {
this._pending = null
}