mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-01 23:48:31 +00:00
4.9.9
* Fixed: The example rich content embed not working correctly when the setting is disabled.
This commit is contained in:
parent
5ad0e94a0f
commit
6a846a23b6
3 changed files with 5 additions and 4 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue