0

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.

0xhiryuu
  • 403
  • 4
  • 18

1 Answers1

6
var activeTab = safari.application.activeBrowserWindow.activeTab;
activeTab.url = activeTab.url;
chulster
  • 2,809
  • 15
  • 14