mirror of
https://github.com/wassname/Mostly-Harmless.git
synced 2026-09-12 12:06:05 +08:00
moved cache clearing to its own method for future development
This commit is contained in:
@@ -934,6 +934,17 @@ function Background() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear cached data and reset cleared browser buttons
|
||||
* @alias Background.clearCache(tabId, info, tab)
|
||||
* @return {Boolean} Returns true.
|
||||
* @method
|
||||
*/
|
||||
Background.prototype.clearCache = function () {
|
||||
cache.removeAll();
|
||||
button.setBadgeDefaults();
|
||||
};
|
||||
|
||||
/**
|
||||
* Prepare the browser action (badge, popup, etc.) for a given tab.
|
||||
* @alias Background.prepareBrowserAction(tabId, info, tab)
|
||||
|
||||
Reference in New Issue
Block a user