mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Fix getURI() return http://xx.xx.xx// bug.
This commit is contained in:
parent
371869c0a7
commit
d7e8d4cc08
@ -140,8 +140,8 @@ function getURI() {
|
||||
const pathname = window.location.pathname,
|
||||
arr = pathname.split( "/" ),
|
||||
end = arr.pop(),
|
||||
str = arr.join( "" );
|
||||
return `${ window.location.protocol }//${ window.location.hostname }/${ str }/`;
|
||||
str = arr.join( "" ) === "" ? arr.join( "" ) : arr.join( "" ) + "/";
|
||||
return `${ window.location.protocol }//${ window.location.hostname }/${ str }`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user