Is there any equivalent in safari extension of such a code:
chrome.tabs.getSelected(null,function(tab) {
chrome.tabs.reload(tab.id);
});
This code comes from Chrome.
I would like to put this code to the global.html. I want to immediately reload a page after extension installation.