mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-29 23:55:23 +08:00
feat: Remove possible downloader host prefixes
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user