Files
NativeScript/apps/automated/app/http/http-string-worker.ts
Nathan Walker 1e6fccf272 chore: cleanup
2020-07-23 14:03:37 -07:00

15 lines
245 B
TypeScript

import * as http from '@nativescript/core/http';
(<any>global).FormData = class FormData {};
declare var postMessage: any;
http.getString('https://httpbin.org/get').then(
function (r) {
postMessage(r);
},
function (e) {
throw e;
}
);