Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
db314528
Commit
db314528
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
don't use nonstandard window.location.origin in customizer JS; fixes
#11317
parent
ea3c8918
1 merge request
!11336
don't use nonstandard window.location.origin in customizer JS
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs-assets/js/customizer.js
+2
-1
docs-assets/js/customizer.js
with
2 additions
and
1 deletion
+2
-1
docs-assets/js/customizer.js
+
2
-
1
View file @
db314528
...
...
@@ -56,7 +56,8 @@ window.onload = function () { // wait for load in a dumb way because B-0
data
:
JSON
.
stringify
(
data
)
})
.
success
(
function
(
result
)
{
history
.
replaceState
(
false
,
document
.
title
,
window
.
location
.
origin
+
window
.
location
.
pathname
+
'
?id=
'
+
result
.
id
)
var
origin
=
window
.
location
.
protocol
+
"
//
"
+
window
.
location
.
host
history
.
replaceState
(
false
,
document
.
title
,
origin
+
window
.
location
.
pathname
+
'
?id=
'
+
result
.
id
)
})
.
error
(
function
(
err
)
{
showError
(
'
<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.
'
,
err
)
...
...
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
Menu
Explore
Projects
Groups
Snippets