Commit 399d79f8 authored by Marco Kellershoff's avatar Marco Kellershoff
Browse files

Fix port detection

parent e9f8fdaa
......@@ -564,7 +564,7 @@
var syntax = self.getEditorSyntax();
var cursorPosition = EDITOR.getCursorPosition();
var max_link_length = 8000;
var port = parseInt(window.location.port, 10);
var port = (window.location.port === "") ? 80 : parseInt(window.location.port, 10);
if (port === 80 || port === 443) {
port = '';
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment