mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Fix clearBrowserHistory: url should not always be replaced by "/" as PairDrop might not always be hosted at domain root
This commit is contained in:
parent
a3a8228327
commit
d36cd3524c
6 changed files with 58 additions and 42 deletions
|
@ -402,3 +402,7 @@ const cyrb53 = function(str, seed = 0) {
|
|||
function onlyUnique (value, index, array) {
|
||||
return array.indexOf(value) === index;
|
||||
}
|
||||
|
||||
function getUrlWithoutArguments() {
|
||||
return `${window.location.protocol}//${window.location.host}${window.location.pathname}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue