X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FApp.vue;h=d97df0cc18d1f5ad5ff1af3ba5f8c8b1a059619c;hb=d1b29caaa62ef19e9dd68babf334ec25a966f945;hp=62156d2ce9a87658a4145808d4bf355ea7cb75be;hpb=e9113b48cec284b041e4130e6afe932913f52d36;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/App.vue b/src/App.vue index 62156d2..d97df0c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@ @@ -40,9 +40,9 @@ @@ -51,7 +51,7 @@
@@ -61,14 +61,14 @@
@@ -79,12 +79,12 @@ class="columns is-multiline layout-vertical" >

- + {{ group.name }}

{ + if (response.redirected) { + // This allows to work with authentication proxies. + window.location.href = response.url; + return; + } if (!response.ok) { - throw Error(response.statusText); + throw Error(`${response.statusText}: ${response.body}`); } const that = this; @@ -173,9 +193,6 @@ export default { return that.getConfig(config.externalConfig); } return config; - }) - .catch((error) => { - return this.handleErrors("⚠️ Error loading configuration", error); }); }); }, @@ -227,6 +244,11 @@ export default { }, }; }, + createStylesheet: function (css) { + let style = document.createElement("style"); + style.appendChild(document.createTextNode(css)); + document.head.appendChild(style); + }, }, };