Skip to content

Commit

Permalink
Add a temporary workaround for #286
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyersdev committed May 5, 2024
1 parent d61ce52 commit 3a69148
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/AssistantChatMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,28 @@ import { readonly } from '#root/src/vendor/plugins/readonly'
import { useVue } from '#shared/composables'
const props = defineProps<{ createdAt: Date, role: string, text: string }>()
const { copy } = useClipboard()
const { addToast } = useToasts()
const isHuman = computed(() => props.role === 'human')
const isAssistant = computed(() => props.role === 'assistant')
const name = computed(() => isHuman.value ? 'You' : 'Assistant')
const { isMounted } = useVue()
const isEditable = typeof window !== 'undefined' && window?.navigator.userAgent.match(/firefox/i)
const options = {
interface: {
attribution: false,
autocomplete: true,
autocomplete: false,
images: false,
lists: false,
readonly: true,
spellcheck: false,
toolbar: false,
},
plugins: [
...readonly(),
...(isEditable ? [] : readonly()),
],
readability: false,
}
Expand Down

0 comments on commit 3a69148

Please sign in to comment.