diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-04 20:13:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 20:13:46 +0200 |
commit | 02ba9cfa35c7b2285950955619ae3431391e9625 (patch) | |
tree | 0e1ccc086ba1efde94851f998418d21ac4e278a6 /app/javascript/packs | |
parent | e2b561e3a521ff893943c0e9e32952e35934ca54 (diff) |
Remove code for rendering public and hashtag timelines outside the web UI (#19257)
Diffstat (limited to 'app/javascript/packs')
-rw-r--r-- | app/javascript/packs/about.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/app/javascript/packs/about.js b/app/javascript/packs/about.js deleted file mode 100644 index 892d825ec..000000000 --- a/app/javascript/packs/about.js +++ /dev/null @@ -1,26 +0,0 @@ -import './public-path'; -import loadPolyfills from '../mastodon/load_polyfills'; -import { start } from '../mastodon/common'; - -start(); - -function loaded() { - const TimelineContainer = require('../mastodon/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('../mastodon/ready').default; - ready(loaded); -} - -loadPolyfills().then(main).catch(error => { - console.error(error); -}); |