Skip to content

Instantly share code, notes, and snippets.

@quigybo
Created October 28, 2010 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quigybo/650834 to your computer and use it in GitHub Desktop.
Save quigybo/650834 to your computer and use it in GitHub Desktop.
commit c4b6241558a6c05794c06c9e23e11047f5cec5cc
Author: Chris van Dijk <quigybo@hotmail.com>
Date: Mon Sep 27 17:09:55 2010 +0930
Open all new-window requests in a new tab
diff --git a/config/webview.lua b/config/webview.lua
index 1437769..9b3f2b1 100644
--- a/config/webview.lua
+++ b/config/webview.lua
@@ -159,7 +159,7 @@ webview.init_funcs = {
view:add_signal("new-window-decision", function (v, link, reason)
info("New window decision: %s (%s)", link, reason)
if reason == "link-clicked" then
- window.new({ link })
+ w:new_tab(link)
return true
end
w:new_tab(link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment