From db7a92a74cc5c6bb0a614a1f6ceea8fe786eb11b Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Sun, 3 Dec 2023 17:27:09 +0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(remote-browser):=20Remove=20?= =?UTF-8?q?unused=20test()=20function=20(#4155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix * fix lint * Update Notifications.vue * Update ActionInput.vue --- server/remote-browser.js | 12 +----------- src/components/ActionInput.vue | 2 +- src/components/settings/Notifications.vue | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/server/remote-browser.js b/server/remote-browser.js index 0d17f1a56..da8e9a5ec 100644 --- a/server/remote-browser.js +++ b/server/remote-browser.js @@ -1,5 +1,5 @@ const { R } = require("redbean-node"); -const { testRemoteBrowser } = require("./monitor-types/real-browser-monitor-type.js"); + class RemoteBrowser { /** @@ -67,16 +67,6 @@ class RemoteBrowser { await R.trash(bean); } - /** - * Tests the connection to Remote Browser - * @param {object} remoteBrowser Docker host to check for - * @returns {boolean} Returns if connection worked - */ - static async test(remoteBrowser) { - const testResult = await testRemoteBrowser(remoteBrowser.id, remoteBrowser.user_id); - return testResult; - } - } module.exports = { diff --git a/src/components/ActionInput.vue b/src/components/ActionInput.vue index 44c9e586f..5303e4271 100644 --- a/src/components/ActionInput.vue +++ b/src/components/ActionInput.vue @@ -8,7 +8,7 @@ :placeholder="placeholder" :disabled="!enabled" > - diff --git a/src/components/settings/Notifications.vue b/src/components/settings/Notifications.vue index 946208a9f..2a65d796e 100644 --- a/src/components/settings/Notifications.vue +++ b/src/components/settings/Notifications.vue @@ -60,7 +60,7 @@
{{ day }} {{ $tc("day", day) }} -