mastodon-glitch/app/javascript/mastodon/common.js

12 lines
187 B
JavaScript

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