mirror of
https://github.com/sigoden/dufs.git
synced 2026-06-07 15:59:03 +03:00
fix: webui can't handle hash property of URL well (#515)
This commit is contained in:
+1
-1
@@ -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