You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An array of all extension context menu items given the context.
171
171
172
+
##### `extensions.getURLOverrides()`
173
+
174
+
Returns `Object` which maps special URL types to an extension URL. See [chrome_urls_overrides](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/chrome_url_overrides) for a list of
175
+
supported URL types.
176
+
177
+
Example:
178
+
179
+
```
180
+
{
181
+
newtab: 'chrome-extension://<id>/newtab.html'
182
+
}
183
+
```
184
+
172
185
#### Instance Events
173
186
174
187
##### Event: 'browser-action-popup-created'
@@ -179,6 +192,14 @@ Returns:
179
192
180
193
Emitted when a popup is created by the `chrome.browserAction` API.
181
194
195
+
##### Event: 'url-overrides-updated'
196
+
197
+
Returns:
198
+
199
+
-`urlOverrides` Object - A map of url types to extension URLs.
200
+
201
+
Emitted after an extension is loaded with [chrome_urls_overrides](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/chrome_url_overrides) set.
0 commit comments