From effdcc7b7d218dd1cdf481d6710e71d76abfba36 Mon Sep 17 00:00:00 2001 From: Ke Xu Date: Thu, 10 Aug 2017 10:43:23 +0900 Subject: [PATCH] fix var name --- manifest.json | 2 +- src/github-api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 73683ec..b7b1a7f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "version": "2.0.3", + "version": "2.0.4", "manifest_version": 2, "default_locale": "en", "name": "__MSG_appName__", diff --git a/src/github-api.js b/src/github-api.js index 0dde3cc..e75816b 100644 --- a/src/github-api.js +++ b/src/github-api.js @@ -28,7 +28,7 @@ function pushToRepo(code) { return {file: file, blob: response}; }) }); - if (changed.lengthun === 0) { + if (changed.length === 0) { showAlert("Nothing to do", LEVEL_WARN); return; }