Skip to content

4.1.0 issues javascript console error #50

Description

@TopCat6

Describe the bug

Browser gives console error message that attachEvent is not a function in line 29 of pngfix.js
window.attachEvent("onload", correctPNG);

Error message goes away when you change line 29 to:
window.addEventListener("onload", correctPNG, false);

Software Versions

  • DNN: 09.08.00
  • Module: 04.01.00
    Firefox 82.0.3

To Reproduce

Steps to reproduce the behavior:

  1. Place Repository module on page
  2. Press F12
  3. Click Console tab
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.
No error should be thrown in browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions