Skip to content

Commit f23fd59

Browse files
authored
Update dependencies (#70)
1 parent c804354 commit f23fd59

11 files changed

+3470
-12531
lines changed

how-to-add-github-enterprise-support-to-web-extensions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66

77
You can implement the feature effortlessly by using these 2 modules:
88

9-
[webext-domain-permission-toggle](https://github.com/fregante/webext-domain-permission-toggle) will add a toggle in the Browser Action icon that will let the user requestion permission to any domain.
9+
[webext-permission-toggle](https://github.com/fregante/webext-permission-toggle) will add a toggle in the Browser Action icon that will let the user requestion permission to any domain.
1010

1111
[webext-dynamic-content-scripts](https://github.com/fregante/webext-dynamic-content-scripts) will use this permission to inject the content scripts you declared in `manifest.json`, but instead of injecting just on the default domain (github.com) they'll be injected on all the new domains that the user added.
1212

1313
## background.js
1414

1515
```js
16-
addDomainPermissionToggle();
16+
addPermissionToggle();
1717
```
1818

1919
or if you use a bundler:
2020

2121
```js
2222
import 'webext-dynamic-content-scripts';
23-
import addDomainPermissionToggle from 'webext-domain-permission-toggle';
23+
import addPermissionToggle from 'webext-permission-toggle';
2424

25-
addDomainPermissionToggle();
25+
addPermissionToggle();
2626
```
2727

2828
## manifest.json v3 example
@@ -33,9 +33,9 @@ addDomainPermissionToggle();
3333
"permissions": [
3434
"scripting",
3535
"contextMenus",
36-
"activeTab" // Required for Firefox support (webext-domain-permission-toggle)
36+
"activeTab" // Required for Firefox support (webext-permission-toggle)
3737
],
38-
"action": { // Required for Firefox support (webext-domain-permission-toggle)
38+
"action": { // Required for Firefox support (webext-permission-toggle)
3939
"default_icon": "icon.png"
4040
},
4141
"optional_host_permissions": [
@@ -62,17 +62,17 @@ addDomainPermissionToggle();
6262
"permissions": [
6363
"https://github.com/*",
6464
"contextMenus",
65-
"activeTab" // Required for Firefox support (webext-domain-permission-toggle)
65+
"activeTab" // Required for Firefox support (webext-permission-toggle)
6666
],
67-
"browser_action": { // Required for Firefox support (webext-domain-permission-toggle)
67+
"browser_action": { // Required for Firefox support (webext-permission-toggle)
6868
"default_icon": "icon.png"
6969
},
7070
"optional_permissions": [
7171
"*://*/*"
7272
],
7373
"background": {
7474
"scripts": [
75-
"webext-domain-permission-toggle.js",
75+
"webext-permission-toggle.js",
7676
"webext-dynamic-content-scripts.js",
7777
"background.js"
7878
]

0 commit comments

Comments
 (0)