From dda5bd340e5c0733aa5a2f087fd1e50ebeabe3c9 Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sat, 7 Dec 2019 09:32:49 -0600 Subject: [PATCH] Minor --- chat/ImagePreview.vue | 5 +++++ chat/image-preview-mutator.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/chat/ImagePreview.vue b/chat/ImagePreview.vue index a72a617..aa705e5 100644 --- a/chat/ImagePreview.vue +++ b/chat/ImagePreview.vue @@ -57,6 +57,11 @@ [url=https://imgur.com/a/nMafj]Imgur album[/url] [url=http://i.imgur.com/txEREOg.gifv]Imgur video[/url] + + [url=https://www.punishbang.com/videos/1898/tied-redhead-is-on-her-knees-and-can/]Test[/url] + + [url=https://www.pornhub.com/view_video.php?viewkey=ph5b2c03dc1e23b]Test[/url] + */ import * as _ from 'lodash'; diff --git a/chat/image-preview-mutator.ts b/chat/image-preview-mutator.ts index 704f3ab..f7ae5af 100644 --- a/chat/image-preview-mutator.ts +++ b/chat/image-preview-mutator.ts @@ -143,7 +143,10 @@ export class ImagePreviewMutator { ${this.injectHtmlJs('
')} const imageCountEl = document.getElementById('imageCountInner'); - imageCountEl.innerHTML = '+' + (imageCount - 1); + + if (imageCountEl) { + imageCountEl.innerHTML = '+' + (imageCount - 1); + } } ` );