File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 types :
99 - created
1010env :
11- REACT_APP_ANALYTICS_ID : ${{ secrets.ANALYTICS_ID }}
12- REACT_APP_WEB_BUILD : 0
11+ REACT_APP_BUILD_TARGET : " extension"
1312jobs :
1413
1514 bump-manifest-version :
Original file line number Diff line number Diff line change 99 < link rel ="preconnect " href ="https://hackertab.dev " />
1010 < script src ="./startup.js "> </ script >
1111
12- < % if (!!+ process.env.REACT_APP_WEB_BUILD ) { %>
12+ < % if (process.env.REACT_APP_BUILD_TARGET==='web' ) { %>
1313 < title > Hackertab</ title >
1414 < link rel ="manifest " href ="%PUBLIC_URL%/web_manifest.json " />
1515 < % } else { %>
Original file line number Diff line number Diff line change @@ -7,9 +7,8 @@ export const isDevelopment = (): boolean => {
77}
88
99export const isWebOrExtensionVersion = ( ) : string => {
10- const webBuild = process . env . REACT_APP_WEB_BUILD as string ;
11-
12- return webBuild === "0" ? "web" : "extension"
10+ const buildTarget = process . env . REACT_APP_BUILD_TARGET as "web" | "extension" | undefined ;
11+ return buildTarget || "web" ;
1312}
1413
1514export const getBrowserName = ( ) : string => {
You can’t perform that action at this time.
0 commit comments