Skip to content

Commit

Permalink
open webbrowser to correct insecure url
Browse files Browse the repository at this point in the history
  • Loading branch information
jabooth committed Jul 24, 2015
1 parent c2cb45f commit 06d84dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions landmarkerio/lmio
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def main(mode, asset_dir, recursive=False, ext=None, template_dir=None,
app = serve_from_cache(mode, cache_dir, lm_adapter,
template_dir=template_dir,
collection_dir=collection_dir, dev=dev)
if not dev and port == 5000:
webbrowser.open("http://www.landmarker.io/?mode={}".format(mode))
if not dev:
webbrowser.open("http://insecure.landmarker.io/#server=http%3A%2F%2Flocalhost%3A{}".format(port))
serve_with_cherrypy(app, port=port, public=public)


Expand Down

0 comments on commit 06d84dd

Please sign in to comment.