Created
October 24, 2019 09:34
-
-
Save LeeHanYeong/5e8986e4082f99bad52fde215e01fc20 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var n = e.target, | |
t = n.closest("a"), | |
r = n.closest("img"); | |
if (t || r) { | |
var o = {}; | |
t && (o.link = t.href), r && (o.image = r.src), (o.link || o.image) && webkit.messageHandlers.webViewContextMenuHandler.postMessage(o) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment