Skip to content

Commit

Permalink
fix(bug): Cannot be turned off via toggle in plugin settings
Browse files Browse the repository at this point in the history
  • Loading branch information
YU000jp committed Jun 1, 2024
1 parent 9a12c18 commit ff99944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const main = async () => {
if (template !== "/") return

//一時的解除をした場合に再度CSSを適用する
if (logseq.settings!.flagExcludeExceptToday as boolean === true) provideStyleExcludeExceptToday()
if (logseq.settings!.flagExcludeExceptToday as boolean === true)
provideStyleExcludeExceptToday()
else
removeProvideStyle(keyCSSExclude)

//日誌を開いたら、今日の日記ページを強制的に開く
if (logseq.settings!.redirectToToday as boolean === true)
Expand Down

0 comments on commit ff99944

Please sign in to comment.