mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
4c45b43cb8
* Change how CDN_HOST is passed down to make assets build reproducible * Change webpacker/webpack configuration to dynamically load publicPath based on meta header * Fix embedded layout missing the cdn-host meta header
15 lines
295 B
JavaScript
15 lines
295 B
JavaScript
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';
|
|
});
|
|
});
|