From c7528530310b19d193f2777a4a5cd0889a1328e5 Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 6 Jan 2015 08:01:15 -0500 Subject: [PATCH] lot of work related to dynamic filtering + new net requests logger --- platform/chromium/vapi-background.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 6d4ff02..76b25bf 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -208,6 +208,15 @@ vAPI.tabs.remove = function(tabId) { /******************************************************************************/ +vAPI.tabs.reload = function(tabId, flags) { + if ( typeof tabId === 'string' ) { + tabId = parseInt(tabId, 10); + } + chrome.tabs.reload(tabId); +}; + +/******************************************************************************/ + vAPI.tabs.injectScript = function(tabId, details, callback) { var onScriptExecuted = function() { // https://code.google.com/p/chromium/issues/detail?id=410868#c8