TODO added

This commit is contained in:
Vladimir Enchev
2014-04-15 17:29:03 +03:00
parent 6b08bc8740
commit 7fd0d2e251

View File

@@ -38,6 +38,7 @@ export class http {
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) {
try {
var isImage = url.match(/\.(jpeg|jpg|gif|png)$/) != null;