angular-svg-base icon indicating copy to clipboard operation
angular-svg-base copied to clipboard

Not working in IE.

Open codedbypaul opened this issue 9 years ago • 1 comments

Noticed the URL isn't being rewritten in IE.

codedbypaul avatar Feb 15 '16 13:02 codedbypaul

If your url is #test-url then Chrome will see it as #test-url but IE sees it as "#test-url".

So when you do:

match[1].indexOf('#')

indexOf will be 0 in Chrome / Firefox but 1 in IE due to IE seeing " as the character at 0.

codedbypaul avatar Feb 15 '16 15:02 codedbypaul