aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-11-02 15:06:16 -0700
committerChris Rebert <[email protected]>2013-11-02 15:06:16 -0700
commitfcb906ce09dd29d88c55237e8d0fd700fcd5f44b (patch)
treecb3b5037f6734a00ba5903916ef753b00c7443bc
parent88b651012d5ccefde2088010134079c8eccc6051 (diff)
parentdb314528eb5d6287d1d285ecb18d79cb0ffd7ebc (diff)
downloadbootstrap-fcb906ce09dd29d88c55237e8d0fd700fcd5f44b.tar.xz
bootstrap-fcb906ce09dd29d88c55237e8d0fd700fcd5f44b.zip
Merge pull request #11336 from twbs/fix-11317
don't use nonstandard window.location.origin in customizer JS
-rw-r--r--docs-assets/js/customizer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs-assets/js/customizer.js b/docs-assets/js/customizer.js
index 99ce39aee..87f0bb5a1 100644
--- a/docs-assets/js/customizer.js
+++ b/docs-assets/js/customizer.js
@@ -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)