mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
🛠 Meta information
This commit is contained in:
@@ -11,7 +11,10 @@ const assetPath = path => {
|
||||
return `${(revs && revs[path]) || path}`
|
||||
}
|
||||
const assetUrl = (path, protocol = 'https') => {
|
||||
return `${protocol}://einundzwanzig.space/${assetPath(path)}`
|
||||
const base = path.startsWith('http') ? '' : `${protocol}://einundzwanzig.space`
|
||||
let url = `${base}${assetPath(path)}`
|
||||
if (!url.startsWith(`${protocol}:`)) url = url.replace(/^.*:/, `${protocol}:`)
|
||||
return url
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user