mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-05 19:14:42 +00:00
don't use nonstandard window.location.origin in customizer JS; fixes #11317
This commit is contained in:
parent
ea3c89189a
commit
db314528eb
1 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,8 @@ window.onload = function () { // wait for load in a dumb way because B-0
|
||||||
data: JSON.stringify(data)
|
data: JSON.stringify(data)
|
||||||
})
|
})
|
||||||
.success(function(result) {
|
.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) {
|
.error(function(err) {
|
||||||
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
|
showError('<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.', err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue