Skip to content

Commit 06d84dd

Browse files
committed
open webbrowser to correct insecure url
1 parent c2cb45f commit 06d84dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

landmarkerio/lmio

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def main(mode, asset_dir, recursive=False, ext=None, template_dir=None,
2525
app = serve_from_cache(mode, cache_dir, lm_adapter,
2626
template_dir=template_dir,
2727
collection_dir=collection_dir, dev=dev)
28-
if not dev and port == 5000:
29-
webbrowser.open("http://www.landmarker.io/?mode={}".format(mode))
28+
if not dev:
29+
webbrowser.open("http://insecure.landmarker.io/#server=http%3A%2F%2Flocalhost%3A{}".format(port))
3030
serve_with_cherrypy(app, port=port, public=public)
3131

3232

0 commit comments

Comments
 (0)