Multiplatform way of getting the current browser.
Normally you would have something like this for Chrome
chrome.runtime.onInstalled.addListener(function(){
//something here
});
And this for Firefox
browser.runtime.onInstalled.addListener(function(){
//something here
});
You can replace them with
CurrentBrowser().runtime.onInstalled.addListener(function(){
//something here
});
And now you can work for both browsers with a single codebase.