File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import chrome from "chrome-aws-lambda" ;
22const exePath =
33 process . platform === "win32"
4- ? "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
4+ ? process . arch === "x64" // add additional check to see if win is 64 or 32 bit
5+ ? "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
6+ : "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
57 : process . platform === "linux"
68 ? "/usr/bin/chromium-browser"
79 : "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ;
Original file line number Diff line number Diff line change 11import { readFileSync } from "fs" ;
22
33const regularInter = readFileSync (
4- `${ __dirname } /../../../ fonts/Inter-Regular.woff2`
4+ `${ __dirname } /../fonts/Inter-Regular.woff2`
55) . toString ( "base64" ) ;
66const boldInter = readFileSync (
7- `${ __dirname } /../../../ fonts/Inter-Bold.woff2`
7+ `${ __dirname } /../fonts/Inter-Bold.woff2`
88) . toString ( "base64" ) ;
99
1010function formatNumber ( num : number ) : string {
You can’t perform that action at this time.
0 commit comments