mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Replace deprecated String.prototype.substr()
This commit is contained in:
parent
dc593daba8
commit
bfa355b58d
3 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ var log = function(){
|
|||
str.unshift("color: green");
|
||||
str.unshift("%cOK");
|
||||
}
|
||||
else if (str[str.length - 1].substr(0, 9) === "missmatch"){
|
||||
else if (str[str.length - 1].startsWith("missmatch")){
|
||||
str.unshift("color: red");
|
||||
str.unshift("%cX");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue