From 3950482f3485a3c61892ccda4608fa7a2ff12421 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 25 Apr 2018 18:11:37 -0500 Subject: [PATCH] Fix undefined error --- popup/popup-exclusions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/popup/popup-exclusions.js b/popup/popup-exclusions.js index 08d36c71..c3959e23 100644 --- a/popup/popup-exclusions.js +++ b/popup/popup-exclusions.js @@ -167,6 +167,9 @@ const popupExclusions = (() => { } function handlePopupSave(style) { + if (typeof style.exclusions === 'undefined') { + style.exclusions = {}; + } const current = Object.keys(style.exclusions); const select = $('#popup-exclusions', messageBox.element); const all = getMultiOptions({select});