homebridge-midea-platform 1.2.6-beta.6 → 1.2.6-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -289,10 +289,10 @@
|
|
|
289
289
|
const file_data_str = await homebridge.request('/downloadLua', { deviceType: device.type, deviceSn: device.sn });
|
|
290
290
|
const blob = new Blob([file_data_str], { type: 'text/plain' });
|
|
291
291
|
|
|
292
|
-
const
|
|
292
|
+
const dataUrl = 'data:text/plain;charset=utf-8,' + encodeURIComponent(file_data_str);
|
|
293
293
|
|
|
294
294
|
const a = document.createElement('a');
|
|
295
|
-
a.href =
|
|
295
|
+
a.href = dataUrl;
|
|
296
296
|
a.download = `${device.type.toString(16)}_${device.model}.lua`;
|
|
297
297
|
|
|
298
298
|
document.body.appendChild(a);
|
package/package.json
CHANGED