Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tinycon.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
}());

var browser = {
edge: ua('edge'),
ie: ua('trident'),
chrome: ua('chrome'),
webkit: ua('chrome') || ua('safari'),
Expand Down Expand Up @@ -112,7 +113,7 @@
var drawFavicon = function(label, color) {

// fallback to updating the browser title if unsupported
if (!getCanvas().getContext || browser.ie || browser.safari || options.fallback === 'force') {
if (!getCanvas().getContext || browser.ie || browser.edge || browser.safari || options.fallback === 'force') {
return updateTitle(label);
}

Expand Down Expand Up @@ -152,7 +153,7 @@
var originalTitle = document.title;

// Strip out the old label if there is one
if (originalTitle[0] === '(') {
if (originalTitle.charAt(0) === '(') {
originalTitle = originalTitle.slice(originalTitle.indexOf(' '));
}

Expand Down