Skip to content

Commit

Permalink
Safer name check
Browse files Browse the repository at this point in the history
  • Loading branch information
sleekslush committed Apr 25, 2024
1 parent ce2e0d3 commit 96c3a7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ globalThis.__plasmoInternalPortMap = new Map()
${importSection}
chrome.runtime.onMessageExternal.addListener((request, sender, sendResponse) => {
switch (request.name) {
switch (request?.name) {
${externalMessageSection}
default:
break
Expand Down

0 comments on commit 96c3a7b

Please sign in to comment.