forked from ppfun/pixelplanet
fix captcha spam
This commit is contained in:
parent
4a0e443a13
commit
087319be96
|
@ -170,7 +170,6 @@ export function receivePixelReturn(
|
|||
) {
|
||||
clearTimeout(pixelTimeout);
|
||||
|
||||
try {
|
||||
/*
|
||||
* the terms coolDown is used in a different meaning here
|
||||
* coolDown is the delta seconds of the placed pixel
|
||||
|
@ -255,6 +254,7 @@ export function receivePixelReturn(
|
|||
errorTitle = 'Weird';
|
||||
msg = 'Couldn\'t set Pixel';
|
||||
}
|
||||
|
||||
if (msg) {
|
||||
store.dispatch(pixelFailure());
|
||||
store.dispatch(sweetAlert(
|
||||
|
@ -264,10 +264,9 @@ export function receivePixelReturn(
|
|||
'OK',
|
||||
));
|
||||
}
|
||||
} finally {
|
||||
|
||||
store.dispatch(setPlaceAllowed(true));
|
||||
/* start next request if queue isn't empty */
|
||||
requestFromQueue(store);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user