From fb9fed545e2d65652bc1dcdafe0530c0b846d8d1 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Thu, 30 Jan 2020 07:53:19 +0900
Subject: :v:

---
 src/client/components/post-form.vue | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/client/components/post-form.vue')

diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index 762b82036b..c49b9c2455 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -60,7 +60,6 @@ import i18n from '../i18n';
 import MkVisibilityChooser from './visibility-chooser.vue';
 import MkUserSelect from './user-select.vue';
 import XNotePreview from './note-preview.vue';
-import XEmojiPicker from './emoji-picker.vue';
 import { parse } from '../../mfm/parse';
 import { host, url } from '../config';
 import { erase, unique } from '../../prelude/array';
@@ -543,8 +542,8 @@ export default Vue.extend({
 			});
 		},
 
-		insertEmoji(ev) {
-			const vm = this.$root.new(XEmojiPicker, {
+		async insertEmoji(ev) {
+			const vm = this.$root.new(await import('./emoji-picker.vue').then(m => m.default), {
 				source: ev.currentTarget || ev.target
 			}).$once('chosen', emoji => {
 				insertTextAtCursor(this.$refs.text, emoji);
-- 
cgit v1.2.3-freya

