Skip to content

Commit f61f8b1

Browse files
committed
refactor: pr feedback
Signed-off-by: Kevin Viglucci <[email protected]>
1 parent e1abf8e commit f61f8b1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/rsocket-examples/src/webpack/browser-bundle/src/app.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
var state = "CONNECTING";
2-
var outputDiv = document.querySelector("#output");
3-
var _rsocket = null;
4-
var errorColor = "#eb4034";
5-
var infoColor = "#348CEBFF";
6-
var messageColor = "#2ccd20";
1+
let state = "CONNECTING";
2+
let outputDiv = document.querySelector("#output");
3+
let _rsocket = null;
4+
let errorColor = "#eb4034";
5+
let infoColor = "#348CEBFF";
6+
let messageColor = "#2ccd20";
77

88
function sendMessage(message) {
99
if (state !== "CONNECTED") {
@@ -40,10 +40,10 @@ function sendMessage(message) {
4040
);
4141
}
4242

43-
var sendButton = document.querySelector("#send-button");
43+
let sendButton = document.querySelector("#send-button");
4444
sendButton.addEventListener("click", function () {
45-
var input = document.querySelector("#input-field");
46-
var value = input.value;
45+
let input = document.querySelector("#input-field");
46+
let value = input.value;
4747
if (!value.length) {
4848
const div = document.createElement("div");
4949
div.textContent = `[${new Date().toISOString()}] please include a message!`;

packages/rsocket-examples/src/webpack/browser-bundle/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
app: "./src/app.js",
1616
},
1717
output: {
18-
filename: "[name].js", // [name] will be replaced by 'app' or 'library'
18+
filename: "[name].js", // [name] will be replaced by 'app' or 'rsocket'
1919
path: path.resolve(__dirname, "dist"),
2020
},
2121
devtool: "source-map",

0 commit comments

Comments
 (0)