Dealing with Lint issues
This commit is contained in:
parent
1f6913bb27
commit
9edae1da09
|
|
@ -9,11 +9,11 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label for="noVNC_setting_host">Host:</label>
|
<label for="noVNC_setting_host">Host:</label>
|
||||||
<input id="noVNC_setting_host"></input>
|
<input id="noVNC_setting_host">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="noVNC_setting_port">Port:</label>
|
<label for="noVNC_setting_port">Port:</label>
|
||||||
<input id="noVNC_setting_port" value="5701"></input>
|
<input id="noVNC_setting_port" value="5701">
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="noVNC_setting_path">Path:</label>
|
<label for="noVNC_setting_path">Path:</label>
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ const UI = {
|
||||||
reconnectPassword: null,
|
reconnectPassword: null,
|
||||||
|
|
||||||
// Old browser resolution
|
// Old browser resolution
|
||||||
bodyWidthBrowserResize: 0,
|
bodyWidthBrowserResize: 0,
|
||||||
bodyHeightBrowserResize: 0,
|
bodyHeightBrowserResize: 0,
|
||||||
|
|
||||||
prime() {
|
prime() {
|
||||||
|
|
@ -999,11 +999,11 @@ const UI = {
|
||||||
let OldResolutionEqual = false;
|
let OldResolutionEqual = false;
|
||||||
if (UI.bodyWidthBrowserResize === document.body.clientWidth &&
|
if (UI.bodyWidthBrowserResize === document.body.clientWidth &&
|
||||||
UI.bodyHeightBrowserResize === document.body.clientHeight) {
|
UI.bodyHeightBrowserResize === document.body.clientHeight) {
|
||||||
OldResolutionEqual = true;
|
OldResolutionEqual = true;
|
||||||
}
|
}
|
||||||
if (UI.bodyHeightBrowserResize === 0 ||
|
if (UI.bodyHeightBrowserResize === 0 ||
|
||||||
OldResolutionEqual) {
|
OldResolutionEqual) {
|
||||||
if((width != 0) && (height != 0)) {
|
if ((width != 0) && (height != 0)) {
|
||||||
window.resizeBy(width - bodyWidth, height - bodyHeight);
|
window.resizeBy(width - bodyWidth, height - bodyHeight);
|
||||||
UI.bodyWidthBrowserResize = width;
|
UI.bodyWidthBrowserResize = width;
|
||||||
UI.bodyHeightBrowserResize = height;
|
UI.bodyHeightBrowserResize = height;
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ export default class RFB extends EventTargetMixin {
|
||||||
get resizeBrowser() { return this._resizeBrowser; }
|
get resizeBrowser() { return this._resizeBrowser; }
|
||||||
set resizeBrowser(void_) {
|
set resizeBrowser(void_) {
|
||||||
this._resizeBrowser = void_;
|
this._resizeBrowser = void_;
|
||||||
if(this._resizeBrowser && (this._rfbConnectionState === 'connected')){
|
if (this._resizeBrowser && (this._rfbConnectionState === 'connected')) {
|
||||||
this._resizeBrowser(this._fbWidth, this._fbHeight);
|
this._resizeBrowser(this._fbWidth, this._fbHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue