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

13 lines
234 B
JavaScript

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