0

In Google Chrome and IE, this jQuery code is throwing an error

"Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: hover".

This is the code:

$(document).ready(function()
    {
      $('body').mouseup(function(){
        var isHovered = $('#QRcodeScanner').is(':hover'); 
        if(!isHovered) {
          closeScannerService.prepForClosing();
        }
      });
    });

Is there something I can do about this error? Because I think, this error prevents IE for opening the webcam...

captainsac
  • 2,484
  • 3
  • 27
  • 48
Jesper
  • 316
  • 1
  • 14

0 Answers0