@cpzxrobot/sdk 1.2.35 → 1.2.36
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.
- package/dist/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -208,7 +208,9 @@ class Cpzxrobot {
|
|
|
208
208
|
this.setTitle = function (title) {
|
|
209
209
|
platform.callHandler("app.setTitle", title);
|
|
210
210
|
};
|
|
211
|
-
this.saveBlob =
|
|
211
|
+
this.saveBlob = function (blob, filename) {
|
|
212
|
+
return platform.callHandler("app.saveBlob", blob, filename);
|
|
213
|
+
};
|
|
212
214
|
this.saveBase64 = function (base64, filename) {
|
|
213
215
|
return platform.callHandler("app.saveBase64", base64, filename);
|
|
214
216
|
};
|
package/index.ts
CHANGED
|
@@ -252,7 +252,9 @@ export class Cpzxrobot {
|
|
|
252
252
|
this.setTitle = function (title: string) {
|
|
253
253
|
platform.callHandler("app.setTitle", title);
|
|
254
254
|
};
|
|
255
|
-
this.saveBlob =
|
|
255
|
+
this.saveBlob = function (blob: Blob, filename: string) {
|
|
256
|
+
return platform.callHandler("app.saveBlob", blob, filename);
|
|
257
|
+
};
|
|
256
258
|
this.saveBase64 = function (base64: string, filename: string) {
|
|
257
259
|
return platform.callHandler("app.saveBase64", base64, filename);
|
|
258
260
|
};
|