mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Replace deprecated String.substr with String.slice
This commit is contained in:
parent
2719f08e26
commit
b98762dd68
17 changed files with 54 additions and 54 deletions
|
|
@ -104,8 +104,8 @@ export class AbstractFetchRemote
|
|||
reader.read().then(processText);
|
||||
return;
|
||||
}
|
||||
fCallback(buffer.substring(0, result.index));
|
||||
buffer = buffer.substring(result.index + 1);
|
||||
fCallback(buffer.slice(0, result.index));
|
||||
buffer = buffer.slice(result.index + 1);
|
||||
re.lastIndex = 0;
|
||||
}
|
||||
if (buffer.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue