Fixed CSP and telemetry errors.

This commit is contained in:
Mike Cao 2023-12-20 09:31:33 -08:00
parent e86dfa43af
commit a75f6679b9
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ export function App({ children }) {
{children}
<UpdateNotice user={user} config={config} />
{process.env.NODE_ENV === 'production' && !pathname.includes('/share/') && (
<Script src={`telemetry.js`} />
<Script src={`/telemetry.js`} />
)}
</>
);