Skip to content

Commit

Permalink
feat: Remove possible downloader host prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rewrite0 committed Dec 21, 2023
1 parent f0fb39f commit ff8b858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webui/src/pages/index/downloader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const isNull = computed(() => {
const url = computed(() => {
const downloader = config.value.downloader;
const host = downloader.host.replace(/http(s?)\:\/\//, '');
const protocol = downloader.ssl ? 'https' : 'http';
return `${protocol}://${downloader.host}`;
return `${protocol}://${host}`;
});
</script>

Expand Down

0 comments on commit ff8b858

Please sign in to comment.