From 4f332b771905fcfe59afca6f333db3fcaa81896a Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 4 Aug 2018 17:25:59 +0200 Subject: [PATCH] revert legacy browser support, dropped in favour of webcrypto API --- js/privatebin.js | 3 +-- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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): - +