Adding beef.browser.changeFavicon() and beef.browser.changePageTitle(). Thanks Nib for providing the details.
git-svn-id: https://beef.googlecode.com/svn/trunk@754 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -539,10 +539,25 @@ beef.browser = {
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Changes the favicon in firefox only
|
||||
**/
|
||||
changeFavicon: function(favicon_url) {
|
||||
var link = document.createElement('link');
|
||||
link.type = 'image/x-icon';
|
||||
link.rel = 'shortcut icon';
|
||||
link.href = favicon_url;
|
||||
document.getElementsByTagName('head')[0].appendChild(link);
|
||||
},
|
||||
|
||||
/**
|
||||
* Changes page title
|
||||
**/
|
||||
changePageTitle: function(title) {
|
||||
document.title = title;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user