Fixed url fixer logic

This commit is contained in:
Maxim 2019-12-30 23:32:16 -06:00 committed by GitHub
parent 2a6a0c47d6
commit e58fd2ebe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ const doAjax = (actionPath, data, action) => {
const formatURL = (basePath) => {
url = window.location.href;
if ( url.endsWith('/') )
return url + '/' + basePath;
else
return url + basePath;
else
return url + '/' + basePath;
}
const fetchData = async (url) => {