Properly check if a url match is a project / repository

This commit is contained in:
Rohid
2024-08-26 16:11:15 +06:00
parent 410ccc0f78
commit 3d1038de01
17 changed files with 242 additions and 77 deletions

View File

@@ -8,12 +8,14 @@ import checkCurrentUser from './utils/checkCurrentUser';
import 'bootstrap/dist/js/bootstrap';
const container = document.getElementById('wakatime');
const root = createRoot(container!);
const store = createStore('WakaTime-Options');
checkCurrentUser(store)(30 * 1000);
if (container) {
const root = createRoot(container);
const store = createStore();
checkCurrentUser(store)(30 * 1000);
root.render(
<Provider store={store}>
<WakaTime />
</Provider>,
);
root.render(
<Provider store={store}>
<WakaTime />
</Provider>,
);
}