mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): Application handling of nativeApp instance
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// todo: figure out why this worker is including the whole core and not just the Http module
|
||||
// ie. tree-shaking is not working as expected here. (same setup works in a separate app)
|
||||
import { initGlobal } from '@nativescript/core/globals/index';
|
||||
initGlobal();
|
||||
// import { initGlobal } from '@nativescript/core/globals/index';
|
||||
// initGlobal();
|
||||
|
||||
import { Http } from '@nativescript/core';
|
||||
import { getString } from '@nativescript/core/http';
|
||||
|
||||
declare var postMessage: any;
|
||||
|
||||
Http.getString('https://httpbin.org/get').then(
|
||||
getString('https://httpbin.org/get').then(
|
||||
function (r) {
|
||||
postMessage(r);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user