diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-08-07 12:40:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 12:40:51 -0400 |
commit | 5d4141a429dad23d78238f67ef61baabd251e67c (patch) | |
tree | 7e9875b3fb576d714204bb42e9c9ce862ec3c0a0 /ext/js/data/options-util.js | |
parent | ad31b70b67be6a8a3d53769dacc748aa850330bc (diff) |
Google Docs accessibility (#1875)
* Add accessibility option for forcing Google Docs HTML-based rendering
* Update settings
* Send a documentStart message at document start
* Add accessibility script for Google Docs
* Set up accessibility
* Update tests
Diffstat (limited to 'ext/js/data/options-util.js')
-rw-r--r-- | ext/js/data/options-util.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index 42d8a93a..30ffadb1 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -462,7 +462,8 @@ class OptionsUtil { {async: true, update: this._updateVersion10.bind(this)}, {async: false, update: this._updateVersion11.bind(this)}, {async: true, update: this._updateVersion12.bind(this)}, - {async: true, update: this._updateVersion13.bind(this)} + {async: true, update: this._updateVersion13.bind(this)}, + {async: false, update: this._updateVersion14.bind(this)} ]; if (typeof targetVersion === 'number' && targetVersion < result.length) { result.splice(targetVersion); @@ -864,4 +865,15 @@ class OptionsUtil { } return options; } + + _updateVersion14(options) { + // Version 14 changes: + // Added accessibility options. + for (const profile of options.profiles) { + profile.options.accessibility = { + forceGoogleDocsHtmlRendering: false + }; + } + return options; + } } |