aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-06 22:14:00 -0500
committerGitHub <noreply@github.com>2020-11-06 22:14:00 -0500
commit9c6ff387a0836a78b7a755cfc99828e09d6a6cf8 (patch)
tree5218136c06d9c01a25281934369e6f7d4386dfd8 /ext/bg/js/options.js
parentb62c48822eeea948c0d78c5730f20793838d59da (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.js2
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;
}
}