1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-01 23:48:31 +00:00
* Fixed: The example rich content embed not working correctly when the setting is disabled.
This commit is contained in:
SirStendec 2019-09-12 17:49:49 -04:00
parent 5ad0e94a0f
commit 6a846a23b6
3 changed files with 5 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "frankerfacez", "name": "frankerfacez",
"author": "Dan Salvato LLC", "author": "Dan Salvato LLC",
"version": "4.9.8", "version": "4.9.9",
"description": "FrankerFaceZ is a Twitch enhancement suite.", "description": "FrankerFaceZ is a Twitch enhancement suite.",
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {

View file

@ -22,7 +22,7 @@ export const Links = {
priority: -10, priority: -10,
test(token) { test(token) {
if ( ! this.context.get('chat.rich.all-links') ) if ( ! this.context.get('chat.rich.all-links') && ! token.force_rich )
return false; return false;
return token.type === 'link' return token.type === 'link'

View file

@ -1,6 +1,6 @@
<template> <template>
<div> <div v-if="data">
<div class="tw-c-text-alt tw-mg-b-05"> <div class="tw-c-text-alt-2 tw-mg-b-05">
{{ t('setting.example', 'Example:') }} {{ t('setting.example', 'Example:') }}
</div> </div>
<chat-rich <chat-rich
@ -30,6 +30,7 @@ export default {
const url = VIDEOS[Math.floor(Math.random() * VIDEOS.length)], const url = VIDEOS[Math.floor(Math.random() * VIDEOS.length)],
token = { token = {
type: 'link', type: 'link',
force_rich: true,
is_mail: false, is_mail: false,
url, url,
text: url text: url