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...

5

0

Browse other questions tagged or ask your own question.