mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-16 11:28:34 +02:00
* 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';
|
|
});
|
|
});
|