Skip to content

Commit

Permalink
use the chrome-headless-shell mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
evictorero committed Aug 19, 2024
1 parent 4941586 commit de28da8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ async function main() {
const env = Object.assign({}, process.env);
const command = argv._[0];

// See https://github.com/grafana/grafana-image-renderer/issues/460
process.env["PUPPETEER_DISABLE_HEADLESS_WARNING"] = "true"

if (command === undefined) {
const logger = new PluginLogger();
const config: PluginConfig = defaultPluginConfig;
Expand Down
2 changes: 1 addition & 1 deletion src/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Browser {
launcherOptions.executablePath = this.config.chromeBin;
}

launcherOptions.headless = !this.config.headed;
launcherOptions.headless = !this.config.headed ? "shell" : false;

return launcherOptions;
}
Expand Down

0 comments on commit de28da8

Please sign in to comment.