From b10ecff3c01ae6f015def0bcfb0c2adb4d0266bc Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 4 Feb 2018 16:34:54 -0800 Subject: [PATCH] fix Firefox autoplay gifv --- routes/_components/ModalDialog.html | 4 ---- routes/_components/NonAutoplayGifv.html | 1 + routes/_components/status/Media.html | 9 +++++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/routes/_components/ModalDialog.html b/routes/_components/ModalDialog.html index 84b9280..9e107cf 100644 --- a/routes/_components/ModalDialog.html +++ b/routes/_components/ModalDialog.html @@ -54,10 +54,6 @@ export default { oncreate() { - // TODO: this hack is for Edge 16, which makes the modal too wide - if (typeof setImmediate === 'function' && navigator.userAgent.match(/Edge/)) { - this.getDialogElement().style.width = `${this.get('width')}px` - } this.getDialogElement().style.background = this.get('background') || '#000' this.observe('shown', shown => { if (shown) { diff --git a/routes/_components/NonAutoplayGifv.html b/routes/_components/NonAutoplayGifv.html index 549ca5d..7323519 100644 --- a/routes/_components/NonAutoplayGifv.html +++ b/routes/_components/NonAutoplayGifv.html @@ -4,6 +4,7 @@ > {{#if playing}}