From b4c09a8dfffb511ad643766afc6a3aa94e95adfd Mon Sep 17 00:00:00 2001 From: Ryazanov Alexander Mihailovich Date: Tue, 8 Oct 2024 07:46:35 +0300 Subject: [PATCH] refactor: change download type in InterfaceView.vue --- frontend/src/views/InterfaceView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/InterfaceView.vue b/frontend/src/views/InterfaceView.vue index 69b7953..cc8ed99 100644 --- a/frontend/src/views/InterfaceView.vue +++ b/frontend/src/views/InterfaceView.vue @@ -52,7 +52,7 @@ async function download() { let text = interfaces.configuration 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'