The following line in the JavaScript file:

for (const item in euCookieComplianceAllowlist)

(see https://git.drupalcode.org/project/eu-cookie-compliance/-/blob/8.x-1.x/j... )
produces the error in IE11 (SCRIPT1053: Const must be initialized), and the banner is not shown.

Comments

maximpodorov created an issue. See original summary.

maximpodorov’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Status: Needs review » Needs work

The last submitted patch, 2: eu_cookie_compliance-const_in_js-3206637-2.patch, failed testing. View results

svenryen’s picture

Status: Needs work » Needs review
svenryen’s picture

Nice catch! Here's also a patch for D7.

  • svenryen committed 8861d78 on 7.x-1.x
    Issue #3206637 by maximpodorov, svenryen: JS error in IE11
    

  • svenryen committed 30b13e6 on 8.x-1.x
    Issue #3206637 by maximpodorov, svenryen: JS error in IE11
    
svenryen’s picture

Status: Needs review » Fixed

Tested and committed - thanks!

  • svenryen committed 8861d78 on 7.x-2.x
    Issue #3206637 by maximpodorov, svenryen: JS error in IE11
    
  • svenryen committed df4e221 on 7.x-2.x
    Merge branch '7.x-1.x' into 7.x-2.x
    
    * 7.x-1.x:
      Issue #3206637 by...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.