aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 3bb75011..a6f61dad 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -1625,10 +1625,18 @@ class Display extends EventDispatcher {
_copyHostSelection() {
if (this._contentOriginFrameId === null || window.getSelection().toString()) { return false; }
- this._copyHostSelectionInner();
+ this._copyHostSelectionSafe();
return true;
}
+ async _copyHostSelectionSafe() {
+ try {
+ await this._copyHostSelectionInner();
+ } catch (e) {
+ // NOP
+ }
+ }
+
async _copyHostSelectionInner() {
switch (this._browser) {
case 'firefox':