Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that reset() can be called at any time #61

Closed
wants to merge 3 commits into from

Conversation

stof
Copy link

@stof stof commented May 26, 2014

The originalFavicon variable is populated by getCurrentFavicon which was called only when setting a bubble, not when setting a custom image or resetting without setting the bubble.
This avoids setting the favicon href to an empty string in these 2 cases, thus trying to use the current page as favicon.

The originalFavicon variable is populated by getCurrentFavicon which was called only when setting a bubble, not when setting a custom image or resetting without setting the bubble.
This avoids setting the favicon href to an empty string in these 2 cases, thus trying to use the current page as favicon.
@stof
Copy link
Author

stof commented Jun 5, 2014

@tommoor is there anything missing for this to be merged ?

@stof
Copy link
Author

stof commented Jun 20, 2014

@tommoor ping

stof added 2 commits June 20, 2014 17:02
When the head contains many favicon tags (needed to support all variants
of modile and Windows 8 icons), the update of the live node list might be
fast enough to be done before the iteration is completed. This means that
some icons are not removed, which can break the resetting depending on the
browser. The list is now iterated backward so that updates don't change
the indexes of remaining elements.
@stof
Copy link
Author

stof commented Jun 20, 2014

I fixed another issue which was breaking the reset in Chrome. The commit explains it. Btw, this live NodeList update was probably the reason why the undfined check was needed.

@stof
Copy link
Author

stof commented Sep 23, 2014

@tommoor is there any interest in merging this ?

@ChrisMBarr
Copy link
Contributor

Check out my PR #69 - I ran into the same issue as you, but I think mine might solve this without running as much code.

@stof
Copy link
Author

stof commented Jun 18, 2015

@ChrisMBarr there is still an issue in your case, in case an image is set: the originalFavicon variable is not populated, so resetting would not work

@tommoor
Copy link
Owner

tommoor commented Apr 9, 2016

Tidying up issues here, thanks for the PR! I ended up merging #69

@tommoor tommoor closed this Apr 9, 2016
@stof stof deleted the patch-1 branch December 1, 2017 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants