mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[UX] Add Device:openLink() stub for Linux SDL (#4822)
References #4821.
This commit is contained in:
@@ -614,6 +614,11 @@ function ReaderLink:onGotoLink(link, neglect_current_location, allow_footnote_po
|
||||
return true
|
||||
end
|
||||
|
||||
-- try opening link in native browser
|
||||
if Device:openLink(link_url) then
|
||||
return true
|
||||
end
|
||||
|
||||
-- Not supported
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = T(_("Invalid or external link:\n%1"), link_url),
|
||||
|
||||
Reference in New Issue
Block a user