Skip to content
Snippets Groups Projects

More annoying fixes for the emoji packs

Merged vaartis requested to merge vaartis/admin-fe:remote-listing into master
1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
+ 7
2
const isLocalhost = (instanceName) =>
instanceName.startsWith('localhost:') || instanceName.startsWith('127.0.0.1:')
export const baseName = (instanceName) =>
isLocalhost(instanceName) ? `http://${instanceName}` : `https://${instanceName}`
export const baseName = (instanceName) => {
if (instanceName.match(/https?:\/\//)) {
return instanceName
} else {
return isLocalhost(instanceName) ? `http://${instanceName}` : `https://${instanceName}`
}
}
Loading