diff --git a/js/privatebin.js b/js/privatebin.js index 05ed6c59..30b2b87b 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 de59c144..2ab54841 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 221da753..a03da041 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -53,7 +53,7 @@ if ($MARKDOWN): - +