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