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
406a8b4e
Commit
406a8b4e
authored
Jul 18, 2013
by
samhed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display the desktop name in the document title
parent
8f12ca7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
rfb.js
include/rfb.js
+4
-0
ui.js
include/ui.js
+9
-1
No files found.
include/rfb.js
View file @
406a8b4e
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2012 Joel Martin
* Copyright (C) 2013 Samuel Mannehed for Cendio AB
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
...
...
@@ -165,6 +166,8 @@ Util.conf_defaults(conf, that, defaults, [
'onFBUComplete(rfb, fbu): RFB FBU received and processed '
],
[
'onFBResize'
,
'rw'
,
'func'
,
function
()
{
},
'onFBResize(rfb, width, height): frame buffer resized'
],
[
'onDesktopName'
,
'rw'
,
'func'
,
function
()
{
},
'onDesktopName(rfb, name): desktop name received'
],
// These callback names are deprecated
[
'updateState'
,
'rw'
,
'func'
,
function
()
{
},
...
...
@@ -873,6 +876,7 @@ init_msg = function() {
/* Connection name/title */
name_length
=
ws
.
rQshift32
();
fb_name
=
ws
.
rQshiftStr
(
name_length
);
conf
.
onDesktopName
(
that
,
fb_name
);
if
(
conf
.
true_color
&&
fb_name
===
"Intel(r) AMT KVM"
)
{
...
...
include/ui.js
View file @
406a8b4e
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2012 Joel Martin
* Copyright (C) 2013 Samuel Mannehed for Cendio AB
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
...
...
@@ -82,7 +83,8 @@ start: function(callback) {
UI
.
rfb
=
RFB
({
'target'
:
$D
(
'noVNC_canvas'
),
'onUpdateState'
:
UI
.
updateState
,
'onClipboard'
:
UI
.
clipReceive
});
'onClipboard'
:
UI
.
clipReceive
,
'onDesktopName'
:
UI
.
updateDocumentTitle
});
UI
.
updateVisualState
();
// Unfocus clipboard when over the VNC area
...
...
@@ -530,6 +532,12 @@ updateVisualState: function() {
},
// Display the desktop name in the document title
updateDocumentTitle
:
function
(
rfb
,
name
)
{
document
.
title
=
name
+
" - noVNC"
;
},
clipReceive
:
function
(
rfb
,
text
)
{
Util
.
Debug
(
">> UI.clipReceive: "
+
text
.
substr
(
0
,
40
)
+
"..."
);
$D
(
'noVNC_clipboard_text'
).
value
=
text
;
...
...
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