Skip to content

Commit

Permalink
Try to avoid auto-submit for bots or spiders on GET
Browse files Browse the repository at this point in the history
Change-Id: I862f12e88a39658ad0f96d05b6e28602c2234cbc
  • Loading branch information
Krinkle committed Jun 2, 2016
1 parent d22c41f commit 9e4d72a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/frontend.js
Expand Up @@ -7,7 +7,8 @@
(function () {
if (!(
document.getElementById &&
'addEventListener' in window
'addEventListener' in window &&
!/bot|spider/i.test( navigator.userAgent )
)) {
// Unsupported browser
return;
Expand Down

0 comments on commit 9e4d72a

Please sign in to comment.