catstodon/app/javascript/mastodon/common.js
2024-08-20 15:59:47 +00:00

11 lines
191 B
JavaScript

import Rails from '@rails/ujs';
export function start() {
require.context('../images/', true, /\.(jpg|png|svg)$/);
try {
Rails.start();
} catch (e) {
// If called twice
}
}