String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with the slice() method which works similarily but isn't deprecated. Signed-off-by: Tobias Speicher <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
4.5 KiB
4.5 KiB