File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ async function main() {
15
15
const env = Object . assign ( { } , process . env ) ;
16
16
const command = argv . _ [ 0 ] ;
17
17
18
+ // See https://github.com/grafana/grafana-image-renderer/issues/460
19
+ process . env [ "PUPPETEER_DISABLE_HEADLESS_WARNING" ] = "true"
20
+
18
21
if ( command === undefined ) {
19
22
const logger = new PluginLogger ( ) ;
20
23
const config : PluginConfig = defaultPluginConfig ;
@@ -24,7 +27,7 @@ async function main() {
24
27
const chromeInfoFile = fs . readFileSync ( path . resolve ( execPath , 'chrome-info.json' ) , 'utf8' ) ;
25
28
const chromeInfo = JSON . parse ( chromeInfoFile ) ;
26
29
27
- config . rendering . chromeBin = computeExecutablePath ( {
30
+ config . rendering . chromeBin = computeExecutablePath ( {
28
31
cacheDir : path . dirname ( process . execPath ) ,
29
32
browser : Browser . CHROME ,
30
33
buildId : chromeInfo . buildId ,
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export class Browser {
135
135
launcherOptions . executablePath = this . config . chromeBin ;
136
136
}
137
137
138
- launcherOptions . headless = ! this . config . headed ? "new" : false ;
138
+ launcherOptions . headless = ! this . config . headed ;
139
139
140
140
return launcherOptions ;
141
141
}
You can’t perform that action at this time.
0 commit comments