mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
fix inverted self.browser logic
This commit is contained in:
parent
ea945fa31c
commit
7ad2568d53
@ -442,9 +442,9 @@ class NotebookApp(BaseIPythonApplication):
|
||||
if self.open_browser:
|
||||
ip = self.ip or '127.0.0.1'
|
||||
if self.browser:
|
||||
browser = webbrowser.get()
|
||||
else:
|
||||
browser = webbrowser.get(self.browser)
|
||||
else:
|
||||
browser = webbrowser.get()
|
||||
b = lambda : browser.open("%s://%s:%i%s" % (proto, ip, self.port,
|
||||
self.base_project_url),
|
||||
new=2)
|
||||
|
Loading…
Reference in New Issue
Block a user