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