Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to disable devtool access? #130

Open
gadamsgh opened this issue Jan 24, 2019 · 1 comment
Open

Correct way to disable devtool access? #130

gadamsgh opened this issue Jan 24, 2019 · 1 comment

Comments

@gadamsgh
Copy link

I'd like to disable access to devtools for certain cases. I found that passing the "--devtools-flags" flag as a launch arg prevents opening devtools via F12, right click -> inspect element, and ctrl+shft+I. Is this the correct way to disable devtool access?

Example main.js:

const carlo = require('carlo');

(async () => {
    const app = await carlo.launch({args:['--devtools-flags']});
    app.on('exit', () => process.exit());
    app.serveFolder(__dirname);
    await app.load('https://www.google.com');
})();
@pavelfeldman
Copy link
Collaborator

There is no good way of disabling devtools via Carlo atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants