Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
8ca18287
Commit
8ca18287
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
customizer: squelch error when can't save Gist
parent
0b6f1906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/assets/js/_src/customizer.js
+6
-1
docs/assets/js/_src/customizer.js
with
6 additions
and
1 deletion
+6
-1
docs/assets/js/_src/customizer.js
+
6
-
1
View file @
8ca18287
...
...
@@ -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>
'
)
})
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment