From 8ca182876debea1eb28c983606267b2bf9aa585d Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 3 Apr 2014 16:58:07 -0700 Subject: [PATCH] customizer: squelch error when can't save Gist --- docs/assets/js/_src/customizer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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('', '') }) }