File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,11 @@ def static_url_prefix(self):
161
161
help = _ ("The default URL to redirect to from `/`" )
162
162
)
163
163
164
+ open_browser = Bool (
165
+ True ,
166
+ help = _ ("Should the extension open a browser window?" )
167
+ )
168
+
164
169
custom_display_url = Unicode (u'' , config = True ,
165
170
help = _ ("""Override URL shown to users.
166
171
@@ -319,7 +324,7 @@ def start(self):
319
324
# Override the server's display url to show extension's display URL.
320
325
self .serverapp .custom_display_url = self .custom_display_url
321
326
# Override the server's default option and open a broswer window.
322
- self .serverapp .open_browser = True
327
+ self .serverapp .open_browser = self . open_browser
323
328
# Hijack the server's browser-open file to land on
324
329
# the extensions home page.
325
330
self .serverapp ._write_browser_open_file = self ._write_browser_open_file
You can’t perform that action at this time.
0 commit comments