WIP PWA for Grain
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: init auth before app renders

+8 -2
-1
index.html
··· 12 12 <title>Grain</title> 13 13 </head> 14 14 <body> 15 - <grain-app></grain-app> 16 15 <script type="module" src="/src/main.js"></script> 17 16 </body> 18 17 </html>
+8 -1
src/main.js
··· 8 8 .catch((err) => console.error('SW registration failed:', err)); 9 9 } 10 10 11 - // Import app shell 11 + import { auth } from './services/auth.js'; 12 12 import './components/pages/grain-app.js'; 13 + 14 + async function init() { 15 + await auth.init(); 16 + document.body.appendChild(document.createElement('grain-app')); 17 + } 18 + 19 + init();