0
0
mirror of https://github.com/puppeteer/puppeteer synced 2024-06-14 14:02:48 +00:00
puppeteer/test/assets/simple-extension/index.js
Andrey Lushnikov ad1802188d
fix(launcher): disable component extensions ()
Chrome has a set of component extensions - e.g. CryptoTokenExtension
that helps with 2FA.

These extensions are loaded regardless of the `--disable-extensions`
flag we already pass. To disable these extensions, we need to pass additional
`--disable-component-extensions-with-background-pages` flag.

Fix 
2019-07-15 17:54:42 -07:00

3 lines
59 B
JavaScript

// Mock script for background extension
window.MAGIC = 42;