mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
writing test for scriptLocation function, fixing non-removed query separator bug
This commit is contained in:
parent
5442af6e20
commit
80f7baa604
2 changed files with 39 additions and 16 deletions
|
@ -259,7 +259,8 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
var scriptLocation = window.location.href.substring(
|
||||
0,
|
||||
window.location.href.length - window.location.search.length - window.location.hash.length
|
||||
), hashIndex = scriptLocation.indexOf('#');
|
||||
),
|
||||
hashIndex = scriptLocation.indexOf('?');
|
||||
if (hashIndex !== -1)
|
||||
{
|
||||
scriptLocation = scriptLocation.substring(0, hashIndex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue