diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-09 23:14:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 23:14:29 -0500 |
commit | 673952e82576b0bc4b6b02c2105fbb1850e55950 (patch) | |
tree | b69661c8ff852c94be8b67f7f448345e59e6e1fa /ext/mixed | |
parent | 166451b8f76224542b49c13cb27a258eb291f05e (diff) |
Fix window popup screenshot (#1365)
* Pass tabId to the screenshot functionality
* Make setVisibleOverride async
* Fix argument order
* Fix incorrect windowId
* Remove unused argument
Diffstat (limited to 'ext/mixed')
-rw-r--r-- | ext/mixed/js/display.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 69cc3d42..c8b7b14b 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -1539,10 +1539,9 @@ class Display extends EventDispatcher { } = options; const timestamp = Date.now(); - const screenshotFrameId = this._contentOriginFrameId; const definitionDetails = this._getDefinitionDetailsForNote(definition); const audioDetails = (mode !== 'kanji' && this._ankiNoteBuilder.containsMarker(fields, 'audio') ? {sources, customSourceUrl, customSourceType} : null); - const screenshotDetails = (this._ankiNoteBuilder.containsMarker(fields, 'screenshot') ? {frameId: screenshotFrameId, format, quality} : null); + const screenshotDetails = (this._ankiNoteBuilder.containsMarker(fields, 'screenshot') ? {tabId: this._contentOriginTabId, frameId: this._contentOriginFrameId, format, quality} : null); const clipboardDetails = { image: this._ankiNoteBuilder.containsMarker(fields, 'clipboard-image'), text: this._ankiNoteBuilder.containsMarker(fields, 'clipboard-text') |