Skip to content

Commit

Permalink
Add "reload" reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohail Rajdev committed Dec 3, 2024
1 parent 8cf2a47 commit 74d937a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion proposals/runtime_on_load_on_enabled_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,23 @@ namespace runtime {
#### `chrome.runtime.onExtensionLoaded`
```typescript
namespace runtime {
export type OnLoadedReason = 'enabled' | 'installed' | 'updated' | 'profileStart';
// The reason for which the event is being dispatched.
//
// 'enabled': The extension was re-enabled from a disabled state.
//
// 'installed': The extension was newly installed.
//
// 'updated': The extension was reloaded after an update.
//
// 'profileStart': The extension is being loaded during a profile startup.
//
// 'reload': The extension was reloaded (e.g. via `chrome.runtime.reload() or`
// the user manually reloaded the extension).
export type OnLoadedReason = 'enabled' |
'installed' |
'updated' |
'profileStart' |
'reload';

export interface ExtensionLoadDetails {
// The reason that this event is being dispatched.
Expand Down

0 comments on commit 74d937a

Please sign in to comment.