From 9edae1da0900fb4805597316a64e47845bd2d865 Mon Sep 17 00:00:00 2001
From: XiaoXianNv-boot <1446935823@qq.com>
Date: Thu, 5 Sep 2024 16:13:09 +0000
Subject: [PATCH] Dealing with Lint issues
---
NewWindow.html | 4 ++--
app/ui.js | 6 +++---
core/rfb.js | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/NewWindow.html b/NewWindow.html
index a8f0acf0..ddbfa492 100644
--- a/NewWindow.html
+++ b/NewWindow.html
@@ -9,11 +9,11 @@
-
-
+
-
-
+
-
diff --git a/app/ui.js b/app/ui.js
index 2cd0cb00..5e7f389d 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -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;
diff --git a/core/rfb.js b/core/rfb.js
index 447abc45..422657be 100644
--- a/core/rfb.js
+++ b/core/rfb.js
@@ -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);
}
}