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