Commit db314528 authored by Chris Rebert's avatar Chris Rebert
Browse files

don't use nonstandard window.location.origin in customizer JS; fixes #11317

parent ea3c8918
1 merge request!11336don't use nonstandard window.location.origin in customizer JS
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment