Skip to content

Instantly share code, notes, and snippets.

@oops-wrong
Created May 27, 2024 18:31
Show Gist options
  • Save oops-wrong/45a337b4245a796b44941c9f12e42600 to your computer and use it in GitHub Desktop.
Save oops-wrong/45a337b4245a796b44941c9f12e42600 to your computer and use it in GitHub Desktop.
window.addEventListener(
'message',
async (e) => {
if (e.data?.type === ContentMessages.UltraToneChange) {
tone = e.data?.payload?.tone?.prompt?.toLowerCase() || '';
}
},
false,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment