mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
fix(image): uncaught error in promise with image handling (#6453)
This commit is contained in:

committed by
Alexander Vakrilov

parent
8e83a61879
commit
950fdcf5e7
@ -69,6 +69,11 @@ function ensureImageSource() {
|
||||
export function request(options: http.HttpRequestOptions): Promise<http.HttpResponse> {
|
||||
return new Promise<http.HttpResponse>((resolve, reject) => {
|
||||
|
||||
if (!options.url) {
|
||||
reject(new Error("Request url was empty."));
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
var network = domainDebugger.getNetwork();
|
||||
var debugRequest = network && network.create();
|
||||
|
Reference in New Issue
Block a user