From b0c11640b6b17656508286576295abc14976522d Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 28 Dec 2020 11:12:13 +0800 Subject: [PATCH] style: optimize printThemeInfo in utils --- source/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/utils.js b/source/js/utils.js index b5e7b45..1629ede 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -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);