1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-29 14:17:11 +02:00

Oops; silliness in Chrome 22 code

This commit is contained in:
Chris 2015-04-07 03:36:12 -06:00
parent 5d06019b19
commit e23e0d8283

View File

@ -733,7 +733,7 @@ vAPI.onLoadAllCompleted = function() {
catch(e) { catch(e) {
chrome.browserAction._setIcon = chrome.browserAction.setIcon; // Nope; looks like older than v23 chrome.browserAction._setIcon = chrome.browserAction.setIcon; // Nope; looks like older than v23
chrome.browserAction.setIcon = function(x, clbk){ // Shim chrome.browserAction.setIcon = function(x, clbk){ // Shim
this._setIcon({path: x.path[19]}, clbk); this._setIcon({path: x.path[19], tabId: x.tabId}, clbk);
}; };
chrome.browserAction.setIcon({ path: iconPaths }); /* maybe this time... I'll win! */ chrome.browserAction.setIcon({ path: iconPaths }); /* maybe this time... I'll win! */
}; };