mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
TODO added
This commit is contained in:
@@ -38,6 +38,7 @@ export class http {
|
|||||||
return d.promise();
|
return d.promise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Accept: application/json header for JSON calls and check the response for Image not url!
|
||||||
private static get(url: string, successCallback: (result: any) => void, errorCallback?: (e: Error) => void) {
|
private static get(url: string, successCallback: (result: any) => void, errorCallback?: (e: Error) => void) {
|
||||||
try {
|
try {
|
||||||
var isImage = url.match(/\.(jpeg|jpg|gif|png)$/) != null;
|
var isImage = url.match(/\.(jpeg|jpg|gif|png)$/) != null;
|
||||||
|
|||||||
Reference in New Issue
Block a user