Commit 8ca18287 authored by Chris Rebert's avatar Chris Rebert
Browse files

customizer: squelch error when can't save Gist

parent 0b6f1906
Showing with 6 additions and 1 deletion
+6 -1
......@@ -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>')
})
}
......
Supports Markdown
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