summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/FilePreview.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/FilePreview.vue b/components/FilePreview.vue
index 878ca5b..9708197 100644
--- a/components/FilePreview.vue
+++ b/components/FilePreview.vue
@@ -42,10 +42,10 @@ export default {
},
created() {
this.baseAPI = this.$config.api;
- if (this.$colorMode.preference == "light") {
- this.color = this.bg;
- } else {
+ if (this.$colorMode.preference == "dark") {
this.color = "#ecfdf5";
+ } else {
+ this.color = this.bg;
}
},
methods: {