mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 14:50:56 +00:00
4.31.1
* Fixed: Infinite loop bug with the `<markdown />` Vue component. * Fixed: Bug with the method that calculates the chat input height causing chat input to disappear completely. * Changed: When an add-on fails to enable, a slightly better message will be logged to console.
This commit is contained in:
parent
e704677e84
commit
a35387abcf
5 changed files with 55 additions and 29 deletions
|
@ -14,22 +14,34 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
md: getMD()
|
||||
output: ''
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
output() {
|
||||
if ( ! this.md )
|
||||
return '';
|
||||
|
||||
return this.md.render(this.source);
|
||||
watch: {
|
||||
source() {
|
||||
this.rebuild();
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
this.md = getMD();
|
||||
if ( ! this.md )
|
||||
awaitMD().then(md => this.md = md);
|
||||
awaitMD().then(md => {
|
||||
this.md = md;
|
||||
this.rebuild();
|
||||
});
|
||||
else
|
||||
this.rebuild();
|
||||
},
|
||||
|
||||
methods: {
|
||||
rebuild() {
|
||||
if ( ! this.md )
|
||||
this.output = '';
|
||||
else
|
||||
this.output = this.md.render(this.source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue