lib/utility_belt/webbrowser.rb in akitaonrails-utility_belt-1.0.11 vs lib/utility_belt/webbrowser.rb in akitaonrails-utility_belt-1.0.12
- old
+ new
@@ -23,10 +23,10 @@
private
def self.launch_linux_browser(browser, url)
if /konqueror/.match browser
cmd = "dcop `dcop konq* | head -1` konqueror-mainwindow#1 newTab #{url}"
Kernel.system(cmd)
- elsif /(firefox)|(swiftweasel)/.match b
+ elsif /(firefox)|(swiftweasel)/.match browser
Kernel.system("#{browser} -new-tab #{url}")
else
Kernel.system("#{browser} #{url}")
end
end