test method removed
This commit is contained in:
parent
19586bc6ef
commit
4f80aa888b
1 changed files with 1 additions and 14 deletions
|
|
@ -132,17 +132,4 @@ self.onmessage = async function(event) {
|
||||||
stopStreaming = true;
|
stopStreaming = true;
|
||||||
break; //stop
|
break; //stop
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Function to split a string in half
|
|
||||||
function splitStringInHalf(inputString) {
|
|
||||||
// Get the middle index of the string
|
|
||||||
const middleIndex = Math.ceil(inputString.length / 2);
|
|
||||||
|
|
||||||
// Split the string into two halves
|
|
||||||
const firstHalf = inputString.slice(0, middleIndex);
|
|
||||||
const secondHalf = inputString.slice(middleIndex);
|
|
||||||
|
|
||||||
return { firstHalf, secondHalf };
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue