aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-04-03 16:58:07 -0700
committerChris Rebert <[email protected]>2014-04-03 17:02:10 -0700
commit8ca182876debea1eb28c983606267b2bf9aa585d (patch)
tree6f53407b3de8df0974522b612a03132dd78fa1d5
parent0b6f1906cd48b5c6b7f9f8dc151bb8f0dc7fd93b (diff)
downloadbootstrap-8ca182876debea1eb28c983606267b2bf9aa585d.tar.xz
bootstrap-8ca182876debea1eb28c983606267b2bf9aa585d.zip
customizer: squelch error when can't save Gist
-rw-r--r--docs/assets/js/_src/customizer.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/assets/js/_src/customizer.js b/docs/assets/js/_src/customizer.js
index 06338b1ef..c2dcba73f 100644
--- a/docs/assets/js/_src/customizer.js
+++ b/docs/assets/js/_src/customizer.js
@@ -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>')
})
}