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); });