diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-06 22:14:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 22:14:00 -0500 |
commit | 9c6ff387a0836a78b7a755cfc99828e09d6a6cf8 (patch) | |
tree | 5218136c06d9c01a25281934369e6f7d4386dfd8 /ext/bg/js/options.js | |
parent | b62c48822eeea948c0d78c5730f20793838d59da (diff) |
Popup preview update (#994)
* Add options.global.showPopupPreview option
* Add preview visibility control using a checkbox
* Add attribute on page load
* Disable animation until page is loaded
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r-- | ext/bg/js/options.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 00d4725a..0edbb82a 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -612,7 +612,9 @@ class OptionsUtil { async _updateVersion6(options) { // Version 6 changes: // Updated handlebars templates to include "conjugation" definition. + // Added global option showPopupPreview. await this._addFieldTemplatesToOptions(options, '/bg/data/anki-field-templates-upgrade-v6.handlebars'); + options.global.showPopupPreview = false; return options; } } |