diff --git a/src/views/emojiPacks/components/EmojiPack.vue b/src/views/emojiPacks/components/EmojiPack.vue index 0eaf70b7..d31fcf8a 100644 --- a/src/views/emojiPacks/components/EmojiPack.vue +++ b/src/views/emojiPacks/components/EmojiPack.vue @@ -92,7 +92,7 @@

- + {{ isDesktop ? $t('emoji.downloadSharedPack') : $t('emoji.downloadSharedPackMobile') }}
@@ -209,10 +209,11 @@ export default { } }, methods: { - downloadFromInstance() { + downloadFromInstance(url) { + const instanceAddress = `${new URL(url).protocol}//${new URL(url).hostname}` this.$store.dispatch( 'DownloadFrom', - { instanceAddress: this.host, packName: this.name, as: this.downloadSharedAs } + { instanceAddress, packName: this.name, as: this.downloadSharedAs } ).then(() => this.$store.dispatch('ReloadEmoji')) .then(() => this.$store.dispatch('SetLocalEmojiPacks')) },