Skip to content

Commit

Permalink
customizer: squelch error when can't save Gist
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Apr 4, 2014
1 parent 0b6f190 commit 8ca1828
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/assets/js/_src/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ window.onload = function () { // wait for load in a dumb way because B-0
callback(result.html_url, newUrl)
})
.error(function (err) {
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
try {
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
}
catch (sameErr) {
// deliberately ignore the error
}
callback('<none>', '<none>')
})
}
Expand Down

0 comments on commit 8ca1828

Please sign in to comment.