fixed docstring, converted list to set
This commit is contained in:
parent
40185385cf
commit
e537826ff5
@ -300,14 +300,14 @@ def process_pos_args(args, via_ipc=False, cwd=None, target_arg=None):
|
|||||||
|
|
||||||
|
|
||||||
def open_url(url, target=None, force_raise=None):
|
def open_url(url, target=None, force_raise=None):
|
||||||
"""Open an URLs in new window/tab
|
"""Open an URL in new window/tab
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
url: An URL to open
|
url: An URL to open
|
||||||
target: same as new_instance_open_target (used as a default)
|
target: same as new_instance_open_target (used as a default)
|
||||||
"""
|
"""
|
||||||
target = target or config.val.new_instance_open_target
|
target = target or config.val.new_instance_open_target
|
||||||
background = target in ['tab-bg', 'tab-bg-silent']
|
background = target in {'tab-bg', 'tab-bg-silent'}
|
||||||
win_id = mainwindow.get_window(True, force_target=target,
|
win_id = mainwindow.get_window(True, force_target=target,
|
||||||
force_raise=force_raise)
|
force_raise=force_raise)
|
||||||
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
||||||
|
Loading…
Reference in New Issue
Block a user