aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/Service.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-05 23:31:21 +0100
committerLibravatar GitHub <noreply@github.com>2017-11-05 23:31:21 +0100
commit84bff14bf649969b3729b2c751b423d33e508f0b (patch)
treea585b92b88fa10998a7100b78152b2a18f388968 /src/models/Service.js
parentMerge pull request #213 from alecive/master (diff)
parentbump version to beta 12 (diff)
downloadferdium-app-84bff14bf649969b3729b2c751b423d33e508f0b.tar.gz
ferdium-app-84bff14bf649969b3729b2c751b423d33e508f0b.tar.zst
ferdium-app-84bff14bf649969b3729b2c751b423d33e508f0b.zip
Merge pull request #217 from meetfranz/developv5.0.0-beta.125.0.0-beta.12
Beta 12
Diffstat (limited to 'src/models/Service.js')
-rw-r--r--src/models/Service.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/models/Service.js b/src/models/Service.js
index 7a0310ebc..484252e7c 100644
--- a/src/models/Service.js
+++ b/src/models/Service.js
@@ -58,7 +58,12 @@ export default class Service {
58 58
59 @computed get url() { 59 @computed get url() {
60 if (this.recipe.hasCustomUrl && this.customUrl) { 60 if (this.recipe.hasCustomUrl && this.customUrl) {
61 let url = normalizeUrl(this.customUrl); 61 let url;
62 try {
63 url = normalizeUrl(this.customUrl);
64 } catch (err) {
65 console.error(`Service (${this.recipe.name}): '${this.customUrl}' is not a valid Url.`);
66 }
62 67
63 if (typeof this.recipe.buildUrl === 'function') { 68 if (typeof this.recipe.buildUrl === 'function') {
64 url = this.recipe.buildUrl(url); 69 url = this.recipe.buildUrl(url);