Skip to content

Protocol-less images doesn't fade in #8

Description

@rexxars

I'm not quite sure what the intention was with the first part of this line:

if(!src.match(/http/) || typeof window === 'undefined') opacity = 1

Basically that means you won't get fading images for:

  • Relative URLs (<LegitImage src="foo.jpg" />)
  • Protocol-less URLs (<LegitImage src="//domain.com/foo.jpg" />)

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