Skip to content

Commit

Permalink
Merge pull request #357 from XPoet/dev
Browse files Browse the repository at this point in the history
Release new version
  • Loading branch information
XPoet authored Aug 19, 2024
2 parents 61746db + 5dede08 commit 38712ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global KEEP */

window.addEventListener('DOMContentLoaded', () => {
const { version, local_search } = KEEP.theme_config
const { version, local_search, lazyload } = KEEP.theme_config

KEEP.themeInfo = {
theme: `Keep v${version}`,
Expand Down Expand Up @@ -69,7 +69,10 @@ window.addEventListener('DOMContentLoaded', () => {
KEEP.initBack2Top()
KEEP.initCodeBlock()
KEEP.setFooterVersion()
KEEP.initLazyLoad()

if (lazyload?.enable === true) {
KEEP.initLazyLoad()
}

if (local_search?.enable === true) {
KEEP.initLocalSearch()
Expand Down

0 comments on commit 38712ce

Please sign in to comment.