]> git.proxmox.com Git - mirror_novnc.git/commit - vnc_auto.html
Detect port properly in vnc_auto.html when used on port 80 or 443.
authorWill Rouesnel <w.rouesnel@gmail.com>
Sat, 13 Apr 2013 08:45:56 +0000 (18:45 +1000)
committerWill Rouesnel <w.rouesnel@gmail.com>
Sat, 13 Apr 2013 08:45:56 +0000 (18:45 +1000)
commite83b9e03ebecf6da7e3d7641d2d92a838353a328
tree691320d06583377312ddcc93e102292c7b44b799
parent7dc038efd9e8e116f2c2512490ac7c6f2c8bf9ae
Detect port properly in vnc_auto.html when used on port 80 or 443.

Browsers (such as Chrome) don't report port numbers in window.location.port when
used on standard ports such as 80 and 443. This causes vnc_auto.html to not
automatically find the port as it should.

This simple change checks if window.location.port is blank, and sets port as
appropriate from the name of the protocol in use.
vnc_auto.html