[PM-7702] Remove extra content script being injected (#8922)

* remove extra content script being injected that results in multiple messages

* add conditional logic for when to add script
This commit is contained in:
Jake Fink 2024-04-25 17:27:43 -04:00 committed by GitHub
parent d8749a0c56
commit 2ff3fa92fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ export default class AutofillService implements AutofillServiceInterface {
if (triggeringOnPageLoad && autoFillOnPageLoadIsEnabled) {
injectedScripts.push("autofiller.js");
} else {
}
if (!triggeringOnPageLoad) {
await this.scriptInjectorService.inject({
tabId: tab.id,
injectDetails: { file: "content/content-message-handler.js", runAt: "document_start" },