Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Add note on reloading unpacked extensions (#7595)
Browse files Browse the repository at this point in the history
* Add note on reloading unpacked extensions

* Apply suggestions from code review

Co-authored-by: amysteamdev <[email protected]>

---------

Co-authored-by: amysteamdev <[email protected]>
  • Loading branch information
oliverdunk and AmySteam authored Oct 19, 2023
1 parent 055ca78 commit e31cdcf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site/en/docs/extensions/reference/runtime/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ The following example shows how to declare the `nativeMessaging` permission in t
}
```

## Concepts and usage {: #concepts }

### Unpacked extension behavior {: #unpacked }

When an [unpacked][unpacked] extension is [reloaded][reload], this is treated as an update. This means that the
[`chrome.runtime.onInstalled`][method-oninstalled] event will fire with the `"update"` reason. This
includes when the extension is reloaded with [`chrome.runtime.reload()`][method-reload].

## Use cases {: #examples}

### Add an image to a web page {: #example-get-url }
Expand Down Expand Up @@ -204,3 +212,5 @@ See the [Manifest V3 - Web Accessible Resources demo][github-war-sample] for mor
[method-sendmessage]: #method-sendMessage
[method-sendnativemessage]: #method-sendNativeMessage
[method-setuninstallurl]: #method-setUninstallURL
[unpacked]: /docs/extensions/mv3/getstarted/development-basics/#load-unpacked
[reload]: /docs/extensions/mv3/getstarted/development-basics/#reload

0 comments on commit e31cdcf

Please sign in to comment.