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 url = URL.createObjectURL(blob);
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 = url;
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
@@ -2,7 +2,7 @@
2
2
  "displayName": "Homebridge Midea Platform",
3
3
  "name": "homebridge-midea-platform",
4
4
  "type": "module",
5
- "version": "1.2.6-beta.6",
5
+ "version": "1.2.6-beta.7",
6
6
  "description": "Homebridge plugin for Midea devices",
7
7
  "license": "Apache-2.0",
8
8
  "repository": {