From: Chris Rebert Date: Sat, 2 Nov 2013 01:56:27 +0000 (-0700) Subject: don't use nonstandard window.location.origin in customizer JS; fixes #11317 X-Git-Tag: v3.0.2~17^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11336%2Fhead;p=thirdparty%2Fbootstrap.git don't use nonstandard window.location.origin in customizer JS; fixes #11317 --- diff --git a/docs-assets/js/customizer.js b/docs-assets/js/customizer.js index 99ce39aeed..87f0bb5a13 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('Ruh roh! Could not save gist file, configuration not saved.', err)