Skip to content

Commit a6b1ff7

Browse files
committed
Remove duplicate code.
1 parent 9cc2b36 commit a6b1ff7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/script.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ reader.readargs = {
1515
backwards: true,
1616
};
1717

18-
reader.find(); //Find the chat box.
19-
reader.read(); //Get the initial read, to not report on initial load.
20-
2118
function showSelectedChat(chat) {
2219
//Attempt to show a temporary rectangle around the chatbox. skip if overlay is not enabled.
2320
try {
@@ -74,6 +71,7 @@ function readChatbox() {
7471
);
7572
if (comps != null && comps.length > -1) actions++;
7673
for (var x in comps) {
74+
console.log(chat)
7775
count = Number(comps[x].match(/\d+/)); //1
7876
mats = comps[x].match(/[^You receive \d]\w+( \w+)?/)[0]; //Junk
7977
if (!mats.match(/parts|components|Junk/)) mats += "s";

0 commit comments

Comments
 (0)