1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 22:38:30 +09:00

Revert "[Client] Load katex async to reduce bundle size"

This reverts commit 37e3d60ade.
This commit is contained in:
syuilo 2018-11-16 18:26:19 +09:00
parent 37e3d60ade
commit 23d8235197
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -4,6 +4,7 @@
<script lang="ts">
import Vue from 'vue';
import * as katex from 'katex';
export default Vue.extend({
props: {
@ -12,14 +13,10 @@ export default Vue.extend({
required: true
}
},
data() {
return {
compiledFormula: null
};
},
async created() {
const katex = await import('katex').then(m => m.default);
this.compiledFormula = katex.renderToString(this.formula);
computed: {
compiledFormula(): any {
return katex.renderToString(this.formula);
}
}
});
</script>