mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00
13 lines
194 B
TypeScript
13 lines
194 B
TypeScript
import { Http } from '@nativescript/core';
|
|
|
|
declare var postMessage: any;
|
|
|
|
Http.getString('https://httpbin.org/get').then(
|
|
function (r) {
|
|
postMessage(r);
|
|
},
|
|
function (e) {
|
|
throw e;
|
|
}
|
|
);
|