From 72141f2bff25c329f99584b837de3ef6ea555468 Mon Sep 17 00:00:00 2001 From: Ke Xu Date: Sun, 19 Nov 2017 21:59:39 +0900 Subject: [PATCH] fix pattern is null --- manifest.json | 2 +- src/gas-hub.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 6145ea9..14ba9e5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.2.0", + "version": "3.2.1", "manifest_version": 2, "default_locale": "en", "name": "__MSG_appName__", diff --git a/src/gas-hub.js b/src/gas-hub.js index b530251..7e820fb 100644 --- a/src/gas-hub.js +++ b/src/gas-hub.js @@ -205,7 +205,8 @@ function initPageEvent() { $(document).on('click', '#config-button', () => { $('#filetype').val(context.filetype); - $('#ignore-pattern').val(context.bindPattern[context.id].join(';')); + const pattern = context.bindPattern[context.id] || []; + $('#ignore-pattern').val(pattern.join(';')); changeModalState('config', true); });