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
8f12ca7a
Commit
8f12ca7a
authored
Apr 25, 2013
by
Joel Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #252 from astrand/port-80-443
Re-fix pull req #245:
parents
e6500004
b66ffcdd
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 @
8f12ca7a
...
@@ -31,7 +31,7 @@ load: function (callback) {
...
@@ -31,7 +31,7 @@ load: function (callback) {
// Render default UI and initialize settings menu
// Render default UI and initialize settings menu
start
:
function
(
callback
)
{
start
:
function
(
callback
)
{
var
html
=
''
,
i
,
sheet
,
sheets
,
llevels
;
var
html
=
''
,
i
,
sheet
,
sheets
,
llevels
,
port
;
// Stylesheet selection dropdown
// Stylesheet selection dropdown
sheet
=
WebUtil
.
selectStylesheet
();
sheet
=
WebUtil
.
selectStylesheet
();
...
@@ -59,12 +59,12 @@ start: function(callback) {
...
@@ -59,12 +59,12 @@ start: function(callback) {
// set manually
// set manually
port
=
window
.
location
.
port
;
port
=
window
.
location
.
port
;
if
(
!
port
)
{
if
(
!
port
)
{
if
(
window
.
location
.
protocol
.
substring
(
0
,
4
)
==
'http'
)
{
if
(
window
.
location
.
protocol
.
substring
(
0
,
5
)
==
'https'
)
{
port
=
80
;
}
else
if
(
window
.
location
.
protocol
.
substring
(
0
,
5
)
==
'https'
)
{
port
=
443
;
port
=
443
;
}
}
else
if
(
window
.
location
.
protocol
.
substring
(
0
,
4
)
==
'http'
)
{
port
=
80
;
}
}
}
/* Populate the controls if defaults are provided in the URL */
/* 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