Open jelmervdl opened 1 year ago
Slightly related: I was also looking into whether activeTab
instead of <all_urls>
would be sufficient permissions… but that would mean you would have to click the 'translate' button every time you navigate to the next page. So no, not right now.
Right now language detection is run for every page, regardless of whether the user is intending of using the translation add-on. We don't use this information for anything unless the user opens the translation popup.
(edit: and of course if we already enabled translating a certain domain we should not have the user click the button again!)
In the grand scheme of things I don't think it has much of an impact, but if we're looking for optimisations, this might be one.