revert legacy browser support, dropped in favour of webcrypto API

This commit is contained in:
El RIDO
2018-08-04 17:25:59 +02:00
parent 0319a16b15
commit 4f332b7719
3 changed files with 3 additions and 4 deletions

View File

@@ -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;
};