mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fix tslint.
Running "tslint:build" (tslint) task >> ./apps/ui-tests-app/app.ts[4, 1]: consecutive blank lines are disallowed >> ./apps/ui-tests-app/mainPage.ts[23, 17]: duplicate variable: 'fileName'
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
import application = require("application");
|
import application = require("application");
|
||||||
application.mainModule = "mainPage";
|
application.mainModule = "mainPage";
|
||||||
|
|
||||||
|
|
||||||
application.onUncaughtError = function (error: application.NativeScriptError) {
|
application.onUncaughtError = function (error: application.NativeScriptError) {
|
||||||
console.warn(error.message);
|
console.warn(error.message);
|
||||||
if (error.nativeError) {
|
if (error.nativeError) {
|
||||||
@ -9,7 +8,6 @@ application.onUncaughtError = function (error: application.NativeScriptError) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
application.on(application.launchEvent, function (args: application.ApplicationEventData) {
|
application.on(application.launchEvent, function (args: application.ApplicationEventData) {
|
||||||
if (args.android) {
|
if (args.android) {
|
||||||
// For Android applications, args.android is an android.content.Intent class.
|
// For Android applications, args.android is an android.content.Intent class.
|
||||||
|
@ -20,7 +20,7 @@ export function createPage() {
|
|||||||
frame.topmost().navigate("pages/" + txtInput.text);
|
frame.topmost().navigate("pages/" + txtInput.text);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var fileName = fs.path.join(__dirname, txtInput.text, txtInput.text);
|
fileName = fs.path.join(__dirname, txtInput.text, txtInput.text);
|
||||||
if ((fs.File.exists(fileName + ".xml") || (fs.File.exists(fileName + ".js")))) {
|
if ((fs.File.exists(fileName + ".xml") || (fs.File.exists(fileName + ".js")))) {
|
||||||
frame.topmost().navigate(txtInput.text + "/" + txtInput.text);
|
frame.topmost().navigate(txtInput.text + "/" + txtInput.text);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user