mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
10 lines
196 B
TypeScript
10 lines
196 B
TypeScript
import * as http from "tns-core-modules/http";
|
|
|
|
declare var postMessage: any;
|
|
|
|
http.getString("https://httpbin.org/get").then(function (r) {
|
|
postMessage(r);
|
|
}, function (e) {
|
|
throw e;
|
|
});
|