]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/app.js
racetime sync
[alttp.git] / resources / js / app.js
index 47b77032002b0fb66f064bb26f3502ae191c4bcf..f5614c4efcee05e861da3ae9ec17b446b275035f 100644 (file)
@@ -18,6 +18,8 @@ toastr.options.positionClass = 'toast-bottom-right';
  * or customize the JavaScript scaffolding to fit your unique needs.
  */
 
-import App from './components/App';
+import App from './components/app';
 
-ReactDOM.render(<App />, document.getElementById('react-root'));
+if (document.getElementById('react-root')) {
+       ReactDOM.render(<App />, document.getElementById('react-root'));
+}