| .. | ||
| data.json | ||
| functionMocks.js | ||
| index.js | ||
| index.test.js | ||
| magicArray.js | ||
| mimeTypes.js | ||
| mimeTypes.test.js | ||
| package.json | ||
| plugins.js | ||
| plugins.test.js | ||
| readme.md | ||
API
Table of Contents
class: Plugin
opts(optional, default{})
Extends: PuppeteerExtraPlugin
In headless mode navigator.mimeTypes and navigator.plugins are empty.
This plugin emulates both of these with functional mocks to match regular headful Chrome.
Note: mimeTypes and plugins cross-reference each other, so it makes sense to do them at the same time.
- See: https://developer.mozilla.org/en-US/docs/Web/API/NavigatorPlugins/mimeTypes
- See: https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray
- See: https://developer.mozilla.org/en-US/docs/Web/API/NavigatorPlugins/plugins
- See: https://developer.mozilla.org/en-US/docs/Web/API/PluginArray