mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Moved live-sync code in application-common
This commit is contained in:
@ -50,4 +50,8 @@ export function loadCss() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
global.__onLiveSync = function () {
|
||||||
|
frame.reloadPage();
|
||||||
}
|
}
|
@ -156,10 +156,6 @@ app.init({
|
|||||||
|
|
||||||
onCreate: function () {
|
onCreate: function () {
|
||||||
exports.android.init(this);
|
exports.android.init(this);
|
||||||
},
|
|
||||||
|
|
||||||
onLiveSync: function () {
|
|
||||||
frame.reloadPage();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,10 +217,6 @@ global.__onUncaughtError = function (error: Error) {
|
|||||||
definition.notify({ eventName: definition.uncaughtErrorEvent, object: <any>definition.ios, ios: error });
|
definition.notify({ eventName: definition.uncaughtErrorEvent, object: <any>definition.ios, ios: error });
|
||||||
}
|
}
|
||||||
|
|
||||||
global.__onLiveSync = function () {
|
|
||||||
frame.reloadPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
var started: boolean = false;
|
var started: boolean = false;
|
||||||
exports.start = function () {
|
exports.start = function () {
|
||||||
if (!started) {
|
if (!started) {
|
||||||
|
Reference in New Issue
Block a user