mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-15 05:19:56 +02:00
Improvement antos API + bugs fixed
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user