fix: dark mode handling
This commit is contained in:
@@ -108,12 +108,11 @@
|
||||
<script>
|
||||
import { Diff2Html } from 'diff2html'
|
||||
import { createPatch } from 'diff'
|
||||
import { get } from 'vuex-pathify'
|
||||
import _ from 'lodash'
|
||||
|
||||
import historyTrailQuery from 'gql/history/history-trail-query.gql'
|
||||
|
||||
/* global siteConfig */
|
||||
|
||||
export default {
|
||||
props: {
|
||||
pageId: {
|
||||
@@ -145,7 +144,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
darkMode() { return siteConfig.darkMode },
|
||||
darkMode: get('site/dark'),
|
||||
diffs() {
|
||||
return createPatch(`/${this.path}`, this.sourceText, this.targetText)
|
||||
},
|
||||
|
Reference in New Issue
Block a user