Permalink
Browse files

follow_selected: eval_js is gone from webview.

  • Loading branch information...
1 parent aab1343 commit 3643e805890023ffa6e96f4a919ef0cd11947223 @vain vain committed Jun 5, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/follow_selected.lua
View
@@ -47,28 +47,28 @@ local key = lousy.bind.key
add_binds("normal", {
-- Follow selected link
key({}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
w:navigate(uri)
end),
-- Follow selected link in new tab
key({"Control"}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
w:new_tab(uri, false)
end),
-- Follow selected link in new window
key({"Shift"}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
window.new({uri})
end),
-- Download selected uri
key({"Mod1"}, "Return", function (w)
- local uri = w:eval_js(return_selected)
+ local uri = w.view:eval_js(return_selected)
if uri == "" then return false end
w:download(uri)
end),

0 comments on commit 3643e80

Please sign in to comment.