Attempt to fix the "Copy Hyperlink Location" for desktop and Android browsers

This undoes the plumbing change in
0752631deac1e427294ebec932be6624df220452 for desktop and non-iOS mobile browsers.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I3452f18ec005a44c06ec7e4d17ede111c7c7e4c0
This commit is contained in:
Tor Lillqvist 2020-10-28 13:43:48 +02:00 committed by Tor Lillqvist
parent a4becf39ab
commit 702519549e

View file

@ -671,7 +671,7 @@ L.Clipboard = L.Class.extend({
return true;
}
if (cmd === '.uno:Copy' || cmd === '.uno:CopyHyperlinkLocation') {
if (cmd === '.uno:Copy' || (L.Browser.mobile && L.Browser.safari && cmd === '.uno:CopyHyperlinkLocation')) {
this._execCopyCutPaste('copy', cmd);
} else if (cmd === '.uno:Cut') {
this._execCopyCutPaste('cut', cmd);