style: optimize printThemeInfo in utils

This commit is contained in:
XPoet 2020-12-28 11:12:13 +08:00
parent 6c2721286d
commit b0c11640b6
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ KEEP.utils = {
// print theme base info
printThemeInfo() {
const themeInfo = `${KEEP.themeInfo.name} v${KEEP.themeInfo.version}`;
console.info(themeInfo + '\n' + KEEP.themeInfo.repository);
console.log(`\n %c ${themeInfo} %c ${KEEP.themeInfo.repository} \n`, `color: #fadfa3; background: #333; padding: 5px 0;`, `background: #fadfa3; padding: 5px 0;`);
const footThemeInfoDom = document.querySelector('.footer .info-container .theme-info a.theme-version');
if (footThemeInfoDom) {
footThemeInfoDom.setAttribute('href', KEEP.themeInfo.repository);