Since the functions expect string values, they should default to empty strings. And since an array with one empty value is returned when splitting a string with a delimiter, we should make sure make sure there's a value before splitting.
As it's currently written, you can't use the extension until you manually populate the textareas via the Options page, because a JS error happens if you use the buttons.
To test repeatedly I had to call chrome.storage.sync.clear() between tests to clear out values.
Since the functions expect string values, they should default to empty strings. And since an array with one empty value is returned when splitting a string with a delimiter, we should make sure make sure there's a value before splitting.
As it's currently written, you can't use the extension until you manually populate the textareas via the Options page, because a JS error happens if you use the buttons.
To test repeatedly I had to call
chrome.storage.sync.clear()
between tests to clear out values.