Skip to content

Commit

Permalink
use port number.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Feb 8, 2012
1 parent 2db90f7 commit fbb9908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/mkdpreview.py
Expand Up @@ -20,7 +20,7 @@
app = QApplication(sys.argv)
webview = QWebView()
webview.setWindowTitle('Markdown Previewer')
webview.load(QUrl("http://localhost:8081"))
webview.load(QUrl("http://localhost:%d" % port))
def do_eval(js):
webview.page().mainFrame().evaluateJavaScript(
"preview(%s)" % json.dumps(unicode(js, 'utf-8')))
Expand Down

0 comments on commit fbb9908

Please sign in to comment.