Improvement antos API + bugs fixed

This commit is contained in:
lxsang
2020-12-21 15:55:02 +01:00
parent 235a9334d6
commit 9fe744fde7
8 changed files with 88 additions and 4 deletions

View File

@ -1596,6 +1596,11 @@ namespace OS {
* @memberof URLFileHandle
*/
protected _rd(t: string): Promise<any> {
//read the file
if (t === "binary") {
//return API.handle.fileblob(this.path);
return API.blob(this.path+ "?_=" + new Date().getTime());
}
return API.get(this.path, t ? t : "text");
}
}