mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
fix: webui can't handle hash property of URL well (#515)
This commit is contained in:
@@ -833,7 +833,7 @@ function newUrl(name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function baseUrl() {
|
function baseUrl() {
|
||||||
return location.href.split('?')[0];
|
return location.href.split(/[?#]/)[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
function baseName(url) {
|
function baseName(url) {
|
||||||
|
|||||||
Reference in New Issue
Block a user