Skip to content

Commit

Permalink
🕷️fix: covercolor api update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose wan committed Jan 26, 2024
1 parent dbd10d1 commit e5e8f57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/js/covercolor/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ function img2color(src) {
const color = data.RGB;
const [r, g, b] = color.match(/\w\w/g).map(x => parseInt(x, 16));
setThemeColors(color, r, g, b);
cacheColor(src, color);
if (coverColorConfig.time !== 0) {
cacheColor(src, color);
}
})
.catch(error => {
console.error('请检查API是否正常!\n' + error);
Expand Down

0 comments on commit e5e8f57

Please sign in to comment.