fix warnings and console errors
This commit is contained in:
parent
2a9356209b
commit
ac8df82bb7
4 changed files with 14 additions and 9 deletions
|
@ -29,7 +29,7 @@
|
||||||
:replies="getReplies(status.id)"
|
:replies="getReplies(status.id)"
|
||||||
:in-profile="inProfile"
|
:in-profile="inProfile"
|
||||||
:profile-user-id="profileUserId"
|
:profile-user-id="profileUserId"
|
||||||
:virtualHidden="virtualHidden"
|
:virtual-hidden="virtualHidden"
|
||||||
class="status-fadein panel-body"
|
class="status-fadein panel-body"
|
||||||
@goto="setHighlight"
|
@goto="setHighlight"
|
||||||
@toggleExpanded="toggleExpanded"
|
@toggleExpanded="toggleExpanded"
|
||||||
|
|
|
@ -76,9 +76,9 @@
|
||||||
<li>
|
<li>
|
||||||
<Checkbox v-model="useStreamingApi">
|
<Checkbox v-model="useStreamingApi">
|
||||||
{{ $t('settings.useStreamingApi') }}
|
{{ $t('settings.useStreamingApi') }}
|
||||||
<br/>
|
<br>
|
||||||
<small>
|
<small>
|
||||||
{{ $t('settings.useStreamingApiWarning') }}
|
{{ $t('settings.useStreamingApiWarning') }}
|
||||||
</small>
|
</small>
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -18,14 +18,16 @@ const StillImage = {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onLoad () {
|
onLoad () {
|
||||||
this.imageLoadHandler && this.imageLoadHandler(this.$refs.src)
|
const image = this.$refs.src
|
||||||
|
if (!image) return
|
||||||
|
this.imageLoadHandler && this.imageLoadHandler(image)
|
||||||
const canvas = this.$refs.canvas
|
const canvas = this.$refs.canvas
|
||||||
if (!canvas) return
|
if (!canvas) return
|
||||||
const width = this.$refs.src.naturalWidth
|
const width = image.naturalWidth
|
||||||
const height = this.$refs.src.naturalHeight
|
const height = image.naturalHeight
|
||||||
canvas.width = width
|
canvas.width = width
|
||||||
canvas.height = height
|
canvas.height = height
|
||||||
canvas.getContext('2d').drawImage(this.$refs.src, 0, 0, width, height)
|
canvas.getContext('2d').drawImage(image, 0, 0, width, height)
|
||||||
},
|
},
|
||||||
onError () {
|
onError () {
|
||||||
this.imageLoadError && this.imageLoadError()
|
this.imageLoadError && this.imageLoadError()
|
||||||
|
|
|
@ -34,7 +34,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :class="classes.body">
|
<div :class="classes.body">
|
||||||
<div ref="timeline" class="timeline">
|
<div
|
||||||
|
ref="timeline"
|
||||||
|
class="timeline"
|
||||||
|
>
|
||||||
<template v-for="statusId in pinnedStatusIds">
|
<template v-for="statusId in pinnedStatusIds">
|
||||||
<conversation
|
<conversation
|
||||||
v-if="timeline.statusesObject[statusId]"
|
v-if="timeline.statusesObject[statusId]"
|
||||||
|
@ -56,7 +59,7 @@
|
||||||
:collapsable="true"
|
:collapsable="true"
|
||||||
:in-profile="inProfile"
|
:in-profile="inProfile"
|
||||||
:profile-user-id="userId"
|
:profile-user-id="userId"
|
||||||
:virtualHidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
|
:virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue