1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-26 18:10:39 +12:00

Firefox,Safari: implement vAPI.tabs.reload

This commit is contained in:
Deathamns 2015-01-08 21:11:43 +01:00 committed by gorhill
parent 648e5e2d67
commit 7a5d174aa4

View file

@ -410,7 +410,7 @@ vAPI.tabs.get = function(tabId, callback) {
}
// for internal use
if ( tab && typeof callback !== 'function' ) {
if ( typeof callback !== 'function' ) {
return tab;
}
@ -561,6 +561,16 @@ vAPI.tabs.remove = function(tabIds) {
/******************************************************************************/
vAPI.tabs.reload = function(tabId) {
var tab = this.get(tabId);
if ( tab ) {
tab.ownerDocument.defaultView.gBrowser.reloadTab(tab);
}
};
/******************************************************************************/
vAPI.tabs.injectScript = function(tabId, details, callback) {
var tab = vAPI.tabs.get(tabId);