~cytrogen/masto-fe

ref: b922ad7a1b4bc8d968d0df2c7f307d4fec53435d masto-fe/app/javascript/packs/error.js -rw-r--r-- 295 bytes
b922ad7a — Claire Fix crash when S3_ALIAS_HOST or S3_CLOUDFRONT_HOST have a path component (#25018) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import './public-path';
import ready from '../mastodon/ready';

ready(() => {
  const image = document.querySelector('img');

  image.addEventListener('mouseenter', () => {
    image.src = '/oops.gif';
  });

  image.addEventListener('mouseleave', () => {
    image.src = '/oops.png';
  });
});