diff options
| author | Chris Rebert <[email protected]> | 2013-11-01 18:56:27 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-11-01 18:56:27 -0700 |
| commit | db314528eb5d6287d1d285ecb18d79cb0ffd7ebc (patch) | |
| tree | 30a88cc8c5e8629b87f9fffa19b864aba296215b /docs-assets | |
| parent | ea3c89189a6b922c08729857006713de209b66d8 (diff) | |
| download | bootstrap-db314528eb5d6287d1d285ecb18d79cb0ffd7ebc.tar.xz bootstrap-db314528eb5d6287d1d285ecb18d79cb0ffd7ebc.zip | |
don't use nonstandard window.location.origin in customizer JS; fixes #11317
Diffstat (limited to 'docs-assets')
| -rw-r--r-- | docs-assets/js/customizer.js | 3 |
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) |
