Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
b66ffcdd
Commit
b66ffcdd
authored
Apr 25, 2013
by
Peter Åstrand (astrand)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-fix pull req #245:
* Must declare port variable. * Must look for https first, then http.
parent
e6500004
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ui.js
include/ui.js
+5
-5
No files found.
include/ui.js
View file @
b66ffcdd
...
...
@@ -31,7 +31,7 @@ load: function (callback) {
// Render default UI and initialize settings menu
start
:
function
(
callback
)
{
var
html
=
''
,
i
,
sheet
,
sheets
,
llevels
;
var
html
=
''
,
i
,
sheet
,
sheets
,
llevels
,
port
;
// Stylesheet selection dropdown
sheet
=
WebUtil
.
selectStylesheet
();
...
...
@@ -59,12 +59,12 @@ start: function(callback) {
// set manually
port
=
window
.
location
.
port
;
if
(
!
port
)
{
if
(
window
.
location
.
protocol
.
substring
(
0
,
4
)
==
'http'
)
{
port
=
80
;
}
else
if
(
window
.
location
.
protocol
.
substring
(
0
,
5
)
==
'https'
)
{
if
(
window
.
location
.
protocol
.
substring
(
0
,
5
)
==
'https'
)
{
port
=
443
;
}
else
if
(
window
.
location
.
protocol
.
substring
(
0
,
4
)
==
'http'
)
{
port
=
80
;
}
}
/* Populate the controls if defaults are provided in the URL */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment