Skip to content

Commit dc77a1c

Browse files
committed
Add default empty callback to prevent exception when being called from a certain logic flow
1 parent 9a5bfef commit dc77a1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mink-plugin/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function populateDropdownWithAggregatorsInStorage (arrayOfAggregators) {
346346
}
347347
}
348348

349-
function setAggregatorsInStorage (arrayOfAggregatorHostnames, cb) {
349+
function setAggregatorsInStorage (arrayOfAggregatorHostnames, cb = ()) {
350350
// Returns a promise
351351
return chrome.storage.local.set({ 'aggregators': arrayOfAggregatorHostnames }).then(() => {
352352
console.log('Attempting to invoke the callback, this is failing w/ reload')

0 commit comments

Comments
 (0)