2020-03-21 13:14:50 +11:00
|
|
|
import Rails from '@rails/ujs';
|
2018-07-14 11:56:41 +10:00
|
|
|
|
|
|
|
export function start() {
|
2024-04-08 18:17:51 +10:00
|
|
|
require.context('../images/', true, /\.(jpg|png|svg)$/);
|
2018-07-14 11:56:41 +10:00
|
|
|
|
2019-01-18 00:06:08 +11:00
|
|
|
try {
|
|
|
|
Rails.start();
|
2024-09-11 23:59:46 +10:00
|
|
|
} catch {
|
2019-01-18 00:06:08 +11:00
|
|
|
// If called twice
|
|
|
|
}
|
2022-12-19 02:51:37 +11:00
|
|
|
}
|