Skip to content

Commit 975d084

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8c1d4f2 commit 975d084

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

js/index.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import RFB from "@novnc/novnc/core/rfb";
1212
import { setupTooltip } from "./tooltip.js";
1313

1414
const maxRetryCount = 5;
15-
const retryInterval = 3; // seconds
15+
const retryInterval = 3; // seconds
1616

1717
// When this function is called we have successfully connected to a server
1818
function connectedToServer() {
@@ -57,31 +57,31 @@ function connect() {
5757
websockifyUrl.toString(),
5858
{},
5959
);
60-
60+
6161
// Add listeners to important events from the RFB module
6262
rfb.addEventListener("connect", connectedToServer);
6363
rfb.addEventListener("disconnect", disconnectedFromServer);
64-
64+
6565
// Scale our viewport so the user doesn't have to scroll
6666
rfb.scaleViewport = true;
67-
67+
6868
// Use a CSS variable to set background color
6969
rfb.background = "var(--jupyter-medium-dark-grey)";
70-
70+
7171
// Clipboard
7272
function clipboardReceive(e) {
7373
document.getElementById("clipboard-text").value = e.detail.text;
7474
}
7575
rfb.addEventListener("clipboard", clipboardReceive);
76-
76+
7777
function clipboardSend() {
7878
const text = document.getElementById("clipboard-text").value;
7979
rfb.clipboardPasteFrom(text);
8080
}
8181
document
8282
.getElementById("clipboard-text")
8383
.addEventListener("change", clipboardSend);
84-
84+
8585
setupTooltip(
8686
document.getElementById("clipboard-button"),
8787
document.getElementById("clipboard-container"),

0 commit comments

Comments
 (0)