mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
[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:
parent
d8749a0c56
commit
2ff3fa92fb
@ -130,7 +130,9 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
|
|
||||||
if (triggeringOnPageLoad && autoFillOnPageLoadIsEnabled) {
|
if (triggeringOnPageLoad && autoFillOnPageLoadIsEnabled) {
|
||||||
injectedScripts.push("autofiller.js");
|
injectedScripts.push("autofiller.js");
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (!triggeringOnPageLoad) {
|
||||||
await this.scriptInjectorService.inject({
|
await this.scriptInjectorService.inject({
|
||||||
tabId: tab.id,
|
tabId: tab.id,
|
||||||
injectDetails: { file: "content/content-message-handler.js", runAt: "document_start" },
|
injectDetails: { file: "content/content-message-handler.js", runAt: "document_start" },
|
||||||
|
Loading…
Reference in New Issue
Block a user