Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@plasmohq/messaging No compatible callbacks #99

Open
iomjympq99190 opened this issue Feb 19, 2024 · 1 comment
Open

@plasmohq/messaging No compatible callbacks #99

iomjympq99190 opened this issue Feb 19, 2024 · 1 comment

Comments

@iomjympq99190
Copy link

In Chrome kernel 96 and older versions, chrome. runtime. sendMessage () does not generate a Promise,

@iomjympq99190
Copy link
Author

`var p = e => {
return new Promise((resolve, reject)=>{
d().sendMessage(e.extensionId ?? null, e, response => {
if (d().lastError) {
reject(new Error(d().lastError.message));
} else {
resolve(response);
}
})
})

};`
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant