added better favicons, moved from sass to glamor, moved components
and utils to src dir, and removed packages no longer being used
This commit is contained in:
8
src/util/pathPrefix.js
Normal file
8
src/util/pathPrefix.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// make sure basePath doesn't end with /
|
||||
let { pathPrefix } = require('../../config/host.json')
|
||||
const urlChars = pathPrefix.split('')
|
||||
|
||||
if (pathPrefix.length > 1 && urlChars.pop() === '/') {
|
||||
pathPrefix = urlChars.join('')
|
||||
}
|
||||
module.exports = pathPrefix
|
||||
Reference in New Issue
Block a user