mirror of
https://github.com/h44z/wg-portal
synced 2025-06-26 18:16:21 +00:00
refactor: change download type in InterfaceView.vue
This commit is contained in:
parent
b496342805
commit
b4c09a8dff
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user