From 32b84012bb8e2f05295c4237d17224700b149c8f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 31 十二月 2020 16:33:27 +0800 Subject: [PATCH] merge 2020-12-31 --- src/index.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/index.js b/src/index.js index 073c566..a640f39 100644 --- a/src/index.js +++ b/src/index.js @@ -81,9 +81,10 @@ GLOB.filter = config.filter || '' if (config.externalDatabase !== false && config.externalDatabase !== 'false' && config.externalDatabase !== undefined) { - GLOB.externalDatabase = config.externalDatabase || '' + GLOB.externalDatabase = config.externalDatabase ? `[${config.externalDatabase}]..` : '' } else { GLOB.externalDatabase = null + } // 鍙湁涓氬姟绯荤粺鎵嶅彲浠ヨ缃负姝e紡绯荤粺 @@ -169,6 +170,9 @@ link.href = GLOB.favicon document.getElementsByTagName('head')[0].appendChild(link) } + if (GLOB.style && options.styles[GLOB.style]) { + document.body.className = options.styles[GLOB.style] + } } catch { console.warn('Parse Failure') } -- Gitblit v1.8.0