mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00
feat(core): nativescript.config and webpack updates (#8801)
This commit is contained in:
12
apps/automated/src/http/http-string-worker.ts
Normal file
12
apps/automated/src/http/http-string-worker.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import * as http from '@nativescript/core/http';
|
||||
|
||||
declare var postMessage: any;
|
||||
|
||||
http.getString('https://httpbin.org/get').then(
|
||||
function (r) {
|
||||
postMessage(r);
|
||||
},
|
||||
function (e) {
|
||||
throw e;
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user