Skip to content

Instantly share code, notes, and snippets.

@skymins04
Created October 6, 2022 17:52
const btn = document.getElementById('btn');
btn.addEventListener('click', () => {
chrome.runtime.sendMessage({hello: 'world'}, (response) => {
console.log(response.res);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment