Options page: Show or hide textarea depending on Google Fonts setting

This commit is contained in:
nobody 2021-04-01 07:07:33 +02:00
parent ca5a070d72
commit a703ba34fb
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ optionsAdvanced.init = function (opt) {
blockGoogleFonts = options.getOptionElement(Setting.BLOCK_GOOGLE_FONTS);
blockGoogleFonts.addEventListener('change', options.onOptionChanged);
blockGoogleFonts.checked = opt[Setting.BLOCK_GOOGLE_FONTS];
optionsAdvanced.preSelectBlockGoogleFonts(blockGoogleFonts.checked);
allowedDomainsGoogleFonts = options.getOptionElement(Setting.ALLOWED_DOMAINS_GOOGLE_FONTS);
allowedDomainsGoogleFonts.addEventListener('keyup', options.onOptionChanged);