From 554554fcfa775172635f1d31af1ad67f3a0a226b Mon Sep 17 00:00:00 2001 From: dengyuhan <464958567@qq.com> Date: Mon, 10 Dec 2018 10:34:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + javascript/popup.js | 2 +- manifest.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/javascript/popup.js b/javascript/popup.js index 2fe169b..49d50db 100644 --- a/javascript/popup.js +++ b/javascript/popup.js @@ -8,7 +8,7 @@ window.onload = function () { reader.readAsText(this.files[0], "UTF-8");//读取文件 reader.onload = function (evt) { //读取完文件之后会回来这里 var json = evt.target.result; // 读取文件内容 - chrome.storage.sync.set(JSON.parse(json)); + chrome.storage.local.set(JSON.parse(json)); chrome.notifications.create(null, { type: 'basic', diff --git a/manifest.json b/manifest.json index 1def991..0e96c0c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "GithubTags", - "version": "1.0.5", + "version": "1.0.6", "description": "给Github项目添加标签", "manifest_version": 2, "icons": {