From b496342805fdac664796061c826bcc4455aec557 Mon Sep 17 00:00:00 2001 From: Ryazanov Alexander Mihailovich Date: Tue, 8 Oct 2024 07:44:03 +0300 Subject: [PATCH] refactor: change mime type in PeerViewModal.vue --- frontend/src/components/PeerViewModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/PeerViewModal.vue b/frontend/src/components/PeerViewModal.vue index ce487d8..18aa60f 100644 --- a/frontend/src/components/PeerViewModal.vue +++ b/frontend/src/components/PeerViewModal.vue @@ -100,7 +100,7 @@ function download() { let text = configString.value let element = document.createElement('a') - element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) + element.setAttribute('href', 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(text)) element.setAttribute('download', filename) element.style.display = 'none'