forked from mystiq/hydrogen-web
rename asJSON to toJSON
This commit is contained in:
parent
d69b1dc3e2
commit
814cee214c
1 changed files with 2 additions and 2 deletions
|
@ -237,13 +237,13 @@ export class IDBLogExport {
|
||||||
}
|
}
|
||||||
|
|
||||||
asBlob(): BlobHandle {
|
asBlob(): BlobHandle {
|
||||||
const json = this.asJSON();
|
const json = this.toJSON();
|
||||||
const buffer: Uint8Array = this._platform.encoding.utf8.encode(json);
|
const buffer: Uint8Array = this._platform.encoding.utf8.encode(json);
|
||||||
const blob: BlobHandle = this._platform.createBlob(buffer, "application/json");
|
const blob: BlobHandle = this._platform.createBlob(buffer, "application/json");
|
||||||
return blob;
|
return blob;
|
||||||
}
|
}
|
||||||
|
|
||||||
asJSON(): string {
|
toJSON(): string {
|
||||||
const log = {
|
const log = {
|
||||||
formatVersion: 1,
|
formatVersion: 1,
|
||||||
appVersion: this._platform.updateService?.version,
|
appVersion: this._platform.updateService?.version,
|
||||||
|
|
Loading…
Reference in a new issue