Log if token is obtained from manifest

Summary: ^

Reviewed By: antonk52

Differential Revision: D50004785

fbshipit-source-id: c8809c1ff5b6b32722e9df2d7e4002be533f615d
This commit is contained in:
Lorenzo Blasa
2023-10-06 03:26:14 -07:00
committed by Facebook GitHub Bot
parent e8aad89b0b
commit f11052cffd

View File

@@ -36,6 +36,9 @@ async function start() {
const params = new URL(location.href).searchParams;
let token = params.get('token');
if (!token) {
console.info(
'[flipper-client][ui-browser] Get token from manifest instead',
);
const manifestResponse = await fetch('manifest.json');
const manifest = await manifestResponse.json();
token = manifest.token;