From: Chris Rebert Date: Thu, 3 Apr 2014 23:58:07 +0000 (-0700) Subject: customizer: squelch error when can't save Gist X-Git-Tag: v3.2.0~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ca182876debea1eb28c983606267b2bf9aa585d;p=thirdparty%2Fbootstrap.git customizer: squelch error when can't save Gist --- diff --git a/docs/assets/js/_src/customizer.js b/docs/assets/js/_src/customizer.js index 06338b1ef5..c2dcba73f4 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('Ruh roh! Could not save gist file, configuration not saved.', err) + try { + showError('Ruh roh! Could not save gist file, configuration not saved.', err) + } + catch (sameErr) { + // deliberately ignore the error + } callback('', '') }) }