Do not require images in about.js and share.js (#6622)

They are already required by common.js.
master
Akihiko Odaki 7 years ago committed by Eugen Rochko
parent 460e380d38
commit 7a6eaad445
  1. 2
      app/javascript/packs/about.js
  2. 2
      app/javascript/packs/share.js

@ -1,7 +1,5 @@
import loadPolyfills from '../mastodon/load_polyfills'; import loadPolyfills from '../mastodon/load_polyfills';
require.context('../images/', true);
function loaded() { function loaded() {
const TimelineContainer = require('../mastodon/containers/timeline_container').default; const TimelineContainer = require('../mastodon/containers/timeline_container').default;
const React = require('react'); const React = require('react');

@ -1,7 +1,5 @@
import loadPolyfills from '../mastodon/load_polyfills'; import loadPolyfills from '../mastodon/load_polyfills';
require.context('../images/', true);
function loaded() { function loaded() {
const ComposeContainer = require('../mastodon/containers/compose_container').default; const ComposeContainer = require('../mastodon/containers/compose_container').default;
const React = require('react'); const React = require('react');

Loading…
Cancel
Save