summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-07-18 20:30:10 -0400
committerGitHub <noreply@github.com>2020-07-18 20:30:10 -0400
commit27e05f800132a1d3a306f511c53ef03c4ddb6c49 (patch)
treebc9130cf9d22ca9d045fd9f8afcda9fbfbeb8cf3 /ext/mixed
parentd7f78c23b50218eaa52ab4570a1e2297c52c287e (diff)
Reusable backend popup window (#673)
* Update _updateSearchQuery to return the promise * Update how the clipboard search popup is opened * Create an API function to open the search popup * Skip animation on popup creation * Add API function
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/api.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js
index 4009c86e..47b63617 100644
--- a/ext/mixed/js/api.js
+++ b/ext/mixed/js/api.js
@@ -197,6 +197,10 @@ const api = (() => {
return this._invoke('setAllSettings', {value, source});
}
+ getOrCreateSearchPopup(details) {
+ return this._invoke('getOrCreateSearchPopup', isObject(details) ? details : {});
+ }
+
// Invoke functions with progress
importDictionaryArchive(archiveContent, details, onProgress) {