Created
October 28, 2010 07:25
-
-
Save quigybo/650834 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
commit c4b6241558a6c05794c06c9e23e11047f5cec5cc | |
Author: Chris van Dijk <[email protected]> | |
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