style: optimize printThemeInfo in utils
This commit is contained in:
parent
6c2721286d
commit
b0c11640b6
|
@ -12,7 +12,7 @@ KEEP.utils = {
|
||||||
// print theme base info
|
// print theme base info
|
||||||
printThemeInfo() {
|
printThemeInfo() {
|
||||||
const themeInfo = `${KEEP.themeInfo.name} v${KEEP.themeInfo.version}`;
|
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');
|
const footThemeInfoDom = document.querySelector('.footer .info-container .theme-info a.theme-version');
|
||||||
if (footThemeInfoDom) {
|
if (footThemeInfoDom) {
|
||||||
footThemeInfoDom.setAttribute('href', KEEP.themeInfo.repository);
|
footThemeInfoDom.setAttribute('href', KEEP.themeInfo.repository);
|
||||||
|
|
Loading…
Reference in New Issue