Try to fix download of zwave_js logs (#9612)

This commit is contained in:
Raman Gupta 2021-07-26 17:26:22 -04:00 committed by GitHub
parent bf83a9980e
commit 982c940381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,9 @@ class ZWaveJSLogs extends SubscribeMixin(LitElement) {
private _downloadLogs() { private _downloadLogs() {
fileDownload( fileDownload(
this, this,
`data:text/plain;charset=utf-8,${encodeURI(this._textarea!.value)}`, `data:text/plain;charset=utf-8,${encodeURIComponent(
this._textarea!.value
)}`,
`zwave_js.log` `zwave_js.log`
); );
} }