]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
customizer: squelch error when can't save Gist
authorChris Rebert <code@rebertia.com>
Thu, 3 Apr 2014 23:58:07 +0000 (16:58 -0700)
committerChris Rebert <code@rebertia.com>
Fri, 4 Apr 2014 00:02:10 +0000 (17:02 -0700)
docs/assets/js/_src/customizer.js

index 06338b1ef5e4eb78d062a3ea9187f442a4e49080..c2dcba73f4a32f15282a2dcac40fb932e1a5f975 100644 (file)
@@ -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>')
     })
   }