diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-02-03 20:52:07 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-02-03 20:52:07 +0100 |
commit | 155424e52f2d382ccaf4560b2d62aba347a8992b (patch) | |
tree | 83f6db9670616b2e49c503836cdfdb8ba12afe1a /app/javascript/core | |
parent | ed7cb797235d86aedf04e235da40d5d6aa8e1cb1 (diff) |
[Glitch] Run eslint --fix
I don't like it changing files this way, but it's basically what c49213f0ea311daba590db1d7a14a641cbd9fe93 and a few others did.
Diffstat (limited to 'app/javascript/core')
-rw-r--r-- | app/javascript/core/embed.js | 2 | ||||
-rw-r--r-- | app/javascript/core/settings.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/javascript/core/embed.js b/app/javascript/core/embed.js index 9083eb7a3..d1e8f6b10 100644 --- a/app/javascript/core/embed.js +++ b/app/javascript/core/embed.js @@ -15,7 +15,7 @@ window.addEventListener('message', e => { id: data.id, height: document.getElementsByTagName('html')[0].scrollHeight, }, '*'); - }; + } if (['interactive', 'complete'].includes(document.readyState)) { setEmbedHeight(); diff --git a/app/javascript/core/settings.js b/app/javascript/core/settings.js index d5bb9532c..d578463a3 100644 --- a/app/javascript/core/settings.js +++ b/app/javascript/core/settings.js @@ -2,7 +2,9 @@ import 'packs/public-path'; import escapeTextContentForBrowser from 'escape-html'; + const { delegate } = require('@rails/ujs'); + import emojify from '../mastodon/features/emoji/emoji'; delegate(document, '#account_display_name', 'input', ({ target }) => { @@ -65,7 +67,7 @@ delegate(document, '.input-copy button', 'click', ({ target }) => { input.blur(); target.parentNode.classList.add('copied'); - setTimeout(() => { + setTimeout(() => { target.parentNode.classList.remove('copied'); }, 700); } |