Use the first item in the queue since it is the most recent.
This commit is contained in:
parent
193b9b5797
commit
11d49db23b
@ -99,7 +99,7 @@ export default class Buffer {
|
||||
|
||||
getLast(): string {
|
||||
if (this._queue.length > 0) {
|
||||
const last = this._queue[this._queue.length - 1][0];
|
||||
const last = this._queue[0][0];
|
||||
return last[last.length - 1];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user