Skip to content

Commit

Permalink
fix onMessage in background
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden2480 committed Apr 6, 2024
1 parent b66a311 commit 411dd2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {(async
case "resetKanjiSets":
await chrome.storage.local.remove("customsets");
await createKanjiSets();
sendResponse();
break;
case "ensureDefaultConfig":
await ensureDefaultConfiguration();
sendResponse();
break;
}

sendResponse();
})(); return true});

/* Set up a listener for when the extension is installed/chrome restarts */
Expand Down

0 comments on commit 411dd2d

Please sign in to comment.