mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +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");
|
||||
application.mainModule = "mainPage";
|
||||
|
||||
|
||||
application.onUncaughtError = function (error: application.NativeScriptError) {
|
||||
console.warn(error.message);
|
||||
if (error.nativeError) {
|
||||
@ -9,7 +8,6 @@ application.onUncaughtError = function (error: application.NativeScriptError) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
application.on(application.launchEvent, function (args: application.ApplicationEventData) {
|
||||
if (args.android) {
|
||||
// For Android applications, args.android is an android.content.Intent class.
|
||||
|
@ -20,7 +20,7 @@ export function createPage() {
|
||||
frame.topmost().navigate("pages/" + txtInput.text);
|
||||
}
|
||||
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")))) {
|
||||
frame.topmost().navigate(txtInput.text + "/" + txtInput.text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user