0

Is the background script executed when a Chrome extension is updated?

My extension injects logic to web pages when the background script executes, I am afraid the logic would be injected twice.

nagy.zsolt.hun
  • 6,292
  • 12
  • 56
  • 95

1 Answers1

0

Yes, on update the background script is reloaded and executed again.

Existing content scripts are orphaned. There's a whole big question on how to handle that.

Community
  • 1
  • 1
Xan
  • 74,770
  • 16
  • 179
  • 206