mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:39:58 +02:00
Added a cache remover for the zen themes
This commit is contained in:
parent
5a2bf6477b
commit
3ddb98ccb4
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ var ZenThemesCommon = {
|
||||||
return PathUtils.join(this.themesRootPath, themeId);
|
return PathUtils.join(this.themesRootPath, themeId);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
resetThemesCache() {
|
||||||
|
this.themes = null;
|
||||||
|
},
|
||||||
|
|
||||||
async getThemes() {
|
async getThemes() {
|
||||||
if (!this.themes) {
|
if (!this.themes) {
|
||||||
if (!(await IOUtils.exists(this.themesDataFile))) {
|
if (!(await IOUtils.exists(this.themesDataFile))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue