File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
22
"lint" : " eslint src" ,
23
23
"start" : " react-app-rewired start" ,
24
24
"build-web" : " PUBLIC_URL=/leetcode-cheat react-app-rewired build" ,
25
- "build" : " react-app-rewired build" ,
25
+ "build" : " REACT_APP_BUILD_TARGET=extension react-app-rewired build" ,
26
26
"test" : " react-app-rewired test" ,
27
27
"eject" : " react-app-rewired eject" ,
28
28
"crawl" : " node scripts/curlLeetcode.js && node scripts/generateLeetcode.js" ,
Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ export function serialise_bfs(root) {
65
65
return ans . slice ( 0 , - 1 ) + "]" ;
66
66
}
67
67
export function isInExtension ( ) {
68
- // eslint-disable-next-line
69
- return chrome . storage ;
68
+ return process . env . REACT_APP_BUILD_TARGET === "extension" ;
70
69
}
71
70
export function buildRandomTree ( {
72
71
amount = 10 ,
You can’t perform that action at this time.
0 commit comments