diff --git a/js/privatebin.js b/js/privatebin.js index 05ed6c5..30b2b87 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -231,8 +231,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) { return baseUri; } - // window.location.origin is a newer alternative, but requires FF 21 / Chrome 31 / Safari 7 / IE 11 - baseUri = window.location.protocol + '//' + window.location.host + window.location.pathname; + baseUri = window.location.origin + window.location.pathname; return baseUri; }; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index de59c14..2ab5484 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -75,7 +75,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 221da75..a03da04 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -53,7 +53,7 @@ if ($MARKDOWN): - +