mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 13:46:42 +02:00
customizer: squelch error when can't save Gist
This commit is contained in:
@@ -66,7 +66,12 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
|||||||
callback(result.html_url, newUrl)
|
callback(result.html_url, newUrl)
|
||||||
})
|
})
|
||||||
.error(function (err) {
|
.error(function (err) {
|
||||||
|
try {
|
||||||
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
|
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
|
||||||
|
}
|
||||||
|
catch (sameErr) {
|
||||||
|
// deliberately ignore the error
|
||||||
|
}
|
||||||
callback('<none>', '<none>')
|
callback('<none>', '<none>')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user