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:
wade@bindshell.net
2011-02-20 13:53:13 +00:00
parent 4215099a96
commit 92e2558945

View File

@@ -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;
}
};