fix: base()去尾部斜杠防双斜杠URL
This commit is contained in:
parent
b80a004fd6
commit
979cc39687
@ -9,7 +9,8 @@ window.scenseGameList = (function () {
|
||||
}
|
||||
|
||||
function base() {
|
||||
return window.location.pathname.replace(/\/game\/.*$/, '');
|
||||
var p = window.location.pathname.replace(/\/game\/.*$/, '');
|
||||
return p.replace(/\/+$/, '');
|
||||
}
|
||||
|
||||
function statusText(s) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user