]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
don't use nonstandard window.location.origin in customizer JS; fixes #11317 11336/head
authorChris Rebert <code@rebertia.com>
Sat, 2 Nov 2013 01:56:27 +0000 (18:56 -0700)
committerChris Rebert <code@rebertia.com>
Sat, 2 Nov 2013 01:56:27 +0000 (18:56 -0700)
docs-assets/js/customizer.js

index 99ce39aeedb68e24aa05b69d9dc10ab9a05792f7..87f0bb5a13f96115042f589f0f24991add6886dc 100644 (file)
@@ -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)