Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
fix: use default Livereload port
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Apr 30, 2014
1 parent cf8c7e0 commit 015ea6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkdownPreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def run(self, edit, parser='markdown', target='browser'):
livereload_installed = ('LiveReload' in os.listdir(sublime.packages_path()))
# build the html
if livereload_installed:
port = sublime.load_settings('LiveReload.sublime-settings').get('port')
port = sublime.load_settings('LiveReload.sublime-settings').get('port', 35729)
html += '<script>document.write(\'<script src="http://\' + (location.host || \'localhost\').split(\':\')[0] + \':%d/livereload.js?snipver=1"></\' + \'script>\')</script>' % port
# update output html file
tmp_fullpath = getTempMarkdownPreviewPath(self.view)
Expand Down

0 comments on commit 015ea6c

Please sign in to comment.