mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
Merge branch 'master' into admin-russian-translation
This commit is contained in:
commit
590bc5a78a
@ -43,6 +43,20 @@ function App(props) {
|
||||
|
||||
const { hasAdmin } = await request(requestURL, { method: 'GET' });
|
||||
const { data } = await request('/admin/init', { method: 'GET' });
|
||||
const { uuid } = data;
|
||||
|
||||
if (uuid) {
|
||||
await fetch('https://analytics.strapi.io/track', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
event: 'didInitializeAdministration',
|
||||
uuid,
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
getDataRef.current(hasAdmin, data);
|
||||
setState({ hasAdmin, isLoading: false });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user