i am using online addon builder to create a small addon. We can get page loading and url by using this : https://addons.mozilla.org/en-US/developers/docs/sdk/latest/dev-guide/tutorials/listen-for-page-load.html
I tested above and works.
But how to add listener for browser error messages like Problem loading page
(when internet connection fails). i want to catch this error(for example alert "error loading page"). how is possible?
It doesn't look like there's any Jetpack-specific functionality for this sort of thing, so you might be stuck with one of these far more verbose and low-level solutions. But I don't know what I'm talking about, so maybe post to mozilla.dev.extensions
before you take my word for it. :) Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With