diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-04 22:17:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 22:17:42 -0500 |
commit | 8f97ca0aacd9a9f36038aa680cc6b9929450fbc5 (patch) | |
tree | 098eac7465562f7407cb9978c083378c7d6bcbb3 /ext/bg/settings.html | |
parent | 47f16862d0d55ccf9755075741c85d9e6e662e73 (diff) |
Permissions toggle controller (#1347)
* Move file, rename class
* Expose required permissions in an attribute
* Update selector
* Update attribute
* Fix global declaration order
Diffstat (limited to 'ext/bg/settings.html')
-rw-r--r-- | ext/bg/settings.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/settings.html b/ext/bg/settings.html index b0a44437..3064e97a 100644 --- a/ext/bg/settings.html +++ b/ext/bg/settings.html @@ -162,7 +162,7 @@ </div> <div class="checkbox options-advanced ignore-form-changes" data-hide-for-browser="firefox-mobile"> - <label><input type="checkbox" class="clipboard-toggle" data-clipboard-setting="clipboard.enableBackgroundMonitor"> Enable native popups when copying Japanese text</label> + <label><input type="checkbox" class="permissions-toggle" data-permissions-setting="clipboard.enableBackgroundMonitor" data-required-permissions="clipboardRead"> Enable native popups when copying Japanese text</label> </div> <div class="checkbox options-advanced"> @@ -1316,7 +1316,7 @@ <script src="/bg/js/settings/anki-templates-controller.js"></script> <script src="/bg/js/settings/audio-controller.js"></script> <script src="/bg/js/settings/backup-controller.js"></script> - <script src="/bg/js/settings/clipboard-popups-controller.js"></script> + <script src="/bg/js/settings/permissions-toggle-controller.js"></script> <script src="/bg/js/settings/dictionary-controller.js"></script> <script src="/bg/js/settings/dictionary-import-controller.js"></script> <script src="/bg/js/settings/generic-setting-controller.js"></script> |