mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-27 21:01:00 +03:00
Add message when connection failed when trying to vote.
This commit is contained in:
@@ -390,6 +390,9 @@ function vote(type, UUID) {
|
||||
} else if (response.successType == 0) {
|
||||
//failure: duplicate vote
|
||||
votingError("It seems you've already voted before", UUID)
|
||||
} else if (response.successType == -1) {
|
||||
//failure: duplicate vote
|
||||
votingError("A connection error has occured.", UUID)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user