Skip to content

Gradient and document.location.origin in Firefox #998

Closed
@Dodotree

Description

@Dodotree

document.location.origin fails with 'undefined' and a broken URL is created

Can you please add this line to the addGradientFill function:

   var url_origin = ( typeof document.location.origin == 'undefined' )?  
        document.location.protocol+'//'+document.location.host :
        document.location.origin;

before:
$(o, {
fill: "url('" + url_origin + document.location.pathname + "#" + id + "')",
opacity: 1,
"fill-opacity": 1
});

to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions