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
  • 5,542
  • 8
  • 48
  • 82

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
  • 71,217
  • 14
  • 165
  • 189