Fix for #96
This commit is contained in:
parent
6a6f1750b1
commit
1625932e52
2 changed files with 8 additions and 3 deletions
|
@ -95,7 +95,12 @@ exports.getApps = asyncWrapper(async (req, res, next) => {
|
||||||
for (let i = 0; i < labels['flame.name'].split(';').length; i++) {
|
for (let i = 0; i < labels['flame.name'].split(';').length; i++) {
|
||||||
const names = labels['flame.name'].split(';');
|
const names = labels['flame.name'].split(';');
|
||||||
const urls = labels['flame.url'].split(';');
|
const urls = labels['flame.url'].split(';');
|
||||||
const icons = labels['flame.icon'].split(';');
|
let icons = '';
|
||||||
|
|
||||||
|
if ('flame.icon' in labels) {
|
||||||
|
icons = labels['flame.icon'].split(';');
|
||||||
|
}
|
||||||
|
|
||||||
dockerApps.push({
|
dockerApps.push({
|
||||||
name: names[i] || names[0],
|
name: names[i] || names[0],
|
||||||
url: urls[i] || urls[0],
|
url: urls[i] || urls[0],
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version: "3"
|
version: '3'
|
||||||
services:
|
services:
|
||||||
flame:
|
flame:
|
||||||
image: pawelmalak/flame
|
image: pawelmalak/flame
|
||||||
|
|
Loading…
Reference in a new issue