diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-09 12:54:59 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 12:54:59 -0400 | 
| commit | e3a767876944467b09086501a8b2ef308716090a (patch) | |
| tree | ccaca3fac375d975354648d227299e6b162a3db6 /ext/fg/js | |
| parent | 2aa86cc5f8cda022076f7fa047f17fdcca4a0f5e (diff) | |
Anki screenshot refactor (#791)
* Use more consistent style for injectScreenshot
* Move screenshot generation into AnkiNoteBuilder/Backend
* Get optionsContext before await
Diffstat (limited to 'ext/fg/js')
| -rw-r--r-- | ext/fg/js/frontend.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js index e92feaf9..3ddf0d25 100644 --- a/ext/fg/js/frontend.js +++ b/ext/fg/js/frontend.js @@ -67,7 +67,9 @@ class Frontend {          this._isPointerOverPopup = false;          this._runtimeMessageHandlers = new Map([ -            ['requestFrontendReadyBroadcast',        {async: false, handler: this._onMessageRequestFrontendReadyBroadcast.bind(this)}] +            ['requestFrontendReadyBroadcast', {async: false, handler: this._onMessageRequestFrontendReadyBroadcast.bind(this)}], +            ['setAllVisibleOverride',         {async: true,  handler: this._onApiSetAllVisibleOverride.bind(this)}], +            ['clearAllVisibleOverride',       {async: true,  handler: this._onApiClearAllVisibleOverride.bind(this)}]          ]);      } @@ -117,9 +119,7 @@ class Frontend {              ['closePopup',              {async: false, handler: this._onApiClosePopup.bind(this)}],              ['copySelection',           {async: false, handler: this._onApiCopySelection.bind(this)}],              ['getPopupInfo',            {async: false, handler: this._onApiGetPopupInfo.bind(this)}], -            ['getDocumentInformation',  {async: false, handler: this._onApiGetDocumentInformation.bind(this)}], -            ['setAllVisibleOverride',   {async: true,  handler: this._onApiSetAllVisibleOverride.bind(this)}], -            ['clearAllVisibleOverride', {async: true,  handler: this._onApiClearAllVisibleOverride.bind(this)}] +            ['getDocumentInformation',  {async: false, handler: this._onApiGetDocumentInformation.bind(this)}]          ]);          this._updateContentScale(); |