mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
10 lines
200 B
TypeScript
10 lines
200 B
TypeScript
require("globals");
|
|
import http = require("http");
|
|
|
|
declare var postMessage : any;
|
|
|
|
http.getString("https://httpbin.org/get").then(function (r) {
|
|
postMessage(r);
|
|
}, function (e) {
|
|
throw e;
|
|
}); |