mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
18 lines
631 B
TypeScript
18 lines
631 B
TypeScript
import types = require("utils/types");
|
|
import timer = require("timer");
|
|
import consoleModule = require("console");
|
|
import http = require("http");
|
|
import dialogs = require("ui/dialogs");
|
|
|
|
global.setTimeout = timer.setTimeout;
|
|
global.clearTimeout = timer.clearTimeout;
|
|
global.setInterval = timer.setInterval;
|
|
global.clearInterval = timer.clearInterval;
|
|
|
|
// Temporary workaround for console in iOS. We will use runtime console instead our implementation.
|
|
if (types.isUndefined(global.NSObject)) {
|
|
global.console = new consoleModule.Console();
|
|
}
|
|
|
|
global.XMLHttpRequest = (<any>http).XMLHttpRequest;
|
|
global.alert = dialogs.alert; |