mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
changed mainModule to start(entry)
This commit is contained in:
@@ -224,8 +224,11 @@ global.__onUncaughtError = function (error: Error) {
|
||||
}
|
||||
|
||||
var started: boolean = false;
|
||||
exports.start = function () {
|
||||
exports.start = function (entry?: frame.NavigationEntry) {
|
||||
if (!started) {
|
||||
if (entry) {
|
||||
exports.mainEntry = entry;
|
||||
}
|
||||
started = true;
|
||||
exports.loadCss();
|
||||
UIApplicationMain(0, null, null, exports.ios && exports.ios.delegate ? NSStringFromClass(exports.ios.delegate) : NSStringFromClass(Responder));
|
||||
|
||||
Reference in New Issue
Block a user