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

Commit 015ea6c

Browse files
committed
fix: use default Livereload port
1 parent cf8c7e0 commit 015ea6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MarkdownPreview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def run(self, edit, parser='markdown', target='browser'):
433433
livereload_installed = ('LiveReload' in os.listdir(sublime.packages_path()))
434434
# build the html
435435
if livereload_installed:
436-
port = sublime.load_settings('LiveReload.sublime-settings').get('port')
436+
port = sublime.load_settings('LiveReload.sublime-settings').get('port', 35729)
437437
html += '<script>document.write(\'<script src="http://\' + (location.host || \'localhost\').split(\':\')[0] + \':%d/livereload.js?snipver=1"></\' + \'script>\')</script>' % port
438438
# update output html file
439439
tmp_fullpath = getTempMarkdownPreviewPath(self.view)

0 commit comments

Comments
 (0)