diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-18 15:12:52 -0800 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-11-18 15:12:52 -0800 |
commit | a9ed85717163040fb202d49b0342e9e350cb12ba (patch) | |
tree | 542142fa2ed7c1ff5584671c9a678f4b64edc15c /app/javascript/packs/about.js | |
parent | 92cc79be7206534e8c9a9957cc89b5d0eb0bcfac (diff) |
WIP static themeing
Diffstat (limited to 'app/javascript/packs/about.js')
-rw-r--r-- | app/javascript/packs/about.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/javascript/packs/about.js b/app/javascript/packs/about.js deleted file mode 100644 index 6ce8757dc..000000000 --- a/app/javascript/packs/about.js +++ /dev/null @@ -1,24 +0,0 @@ -import loadPolyfills from 'themes/glitch/util/load_polyfills'; - -require.context('../images/', true); - -function loaded() { - const TimelineContainer = require('themes/glitch/containers/timeline_container').default; - const React = require('react'); - const ReactDOM = require('react-dom'); - const mountNode = document.getElementById('mastodon-timeline'); - - if (mountNode !== null) { - const props = JSON.parse(mountNode.getAttribute('data-props')); - ReactDOM.render(<TimelineContainer {...props} />, mountNode); - } -} - -function main() { - const ready = require('themes/glitch/util/ready').default; - ready(loaded); -} - -loadPolyfills().then(main).catch(error => { - console.error(error); -}); |