feat: Remove possible downloader host prefixes

This commit is contained in:
Rewrite0
2023-12-21 09:43:32 +08:00
parent f0fb39f4e4
commit ff8b858592

View File

@@ -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>