Skip to content

Commit

Permalink
Contextual identities permission couldn't be optional #53
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 24, 2024
1 parent ad8e314 commit be5e7ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"permissions": [
"activeTab",
"clipboardWrite",
"contextualIdentities",
"cookies",
"menus",
"notifications",
"storage",
"tabs"
],
"optional_permissions": [
"contextualIdentities",
"<all_urls>"
],
"icons": {
Expand Down
2 changes: 2 additions & 0 deletions options/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ window.addEventListener('DOMContentLoaded', async () => {
(_event) => { restoreDefaultFormats(); }
);

/*
Permissions.bindToCheckbox(
Permissions.CONTEXTUAL_IDENTITIES,
document.querySelector('#contextualIdentitiesPermissionGranted')
);
*/
Permissions.bindToCheckbox(
Permissions.ALL_URLS,
document.querySelector('#allUrlsPermissionGranted')
Expand Down
4 changes: 2 additions & 2 deletions options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@
<p class="syntax-description copyable">__MSG_config_copyToClipboardFormats_accesskey__</p>
<p class="syntax-description copyable">__MSG_config_examples_before__<a href="__MSG_config_examples_link_href__">__MSG_config_examples_link__</a>__MSG_config_examples_after__</p>
<p class="syntax-description copyable">__MSG_config_copyToClipboardFormats_placeholders__</p>
<p class="sub"
<!--p class="sub"
><label id="contextualIdentitiesPermissionCheck"><input id="contextualIdentitiesPermissionGranted"
type="checkbox">
__MSG_config_contextualIdentitiesPermissionGranted_label__</label></p>
__MSG_config_contextualIdentitiesPermissionGranted_label__</label></p-->
<p class="syntax-description copyable">__MSG_config_copyToClipboardFormats_placeholders_special__</p>
<p class="sub"
><label id="allUrlsPermissionCheck"><input id="allUrlsPermissionGranted"
Expand Down

0 comments on commit be5e7ac

Please sign in to comment.