Replace to shakapacker from webpacker
This commit is contained in:
parent
0aacf00f5b
commit
64ee565b33
80 changed files with 1737 additions and 3956 deletions
14
app/javascript/error.js
Normal file
14
app/javascript/error.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import 'mastodon/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';
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue