Firefox background-image slurping error
Closed this issue · 1 comments
caseywatts commented
This is a Firefox compatibility bug we can just close - I think this can be Chrome-only for and that's okay.
I discovered that in Firefox background-image ends up including "
's inside the url()
, where Chrome doesn't, and I had to add two more replace
's to account for that:
var download_url = row_with_string.find('.emoji-wrapper').css('background-image');
var cleaned_up_download_url = download_url
.replace('url(','')
.replace(')','')
.replace('"','')
.replace('"','');
caseywatts commented
and now I can delete my local copy of the code, everything useful has been shared :)