Dealing with Lint issues

This commit is contained in:
XiaoXianNv-boot 2024-09-05 16:13:09 +00:00
parent 1f6913bb27
commit 9edae1da09
3 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -1003,7 +1003,7 @@ const UI = {
}
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;

View File

@ -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);
}
}