UNPKG

puppeteer-extra-plugin-session

Version:

A puppeteer plugin to dump and inject session data.

27 lines 875 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TestBrowserExecutablePath = exports.PLUGIN_NAME = void 0; const os_1 = __importDefault(require("os")); /** * Define the plugin name to report to extra. */ exports.PLUGIN_NAME = 'session'; /** * Used for testing only. * * Get this by navigating to chrome://version */ exports.TestBrowserExecutablePath = undefined; switch (os_1.default.platform()) { case 'darwin': exports.TestBrowserExecutablePath = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'; break; case 'linux': exports.TestBrowserExecutablePath = '/usr/bin/google-chrome'; break; } //# sourceMappingURL=constants.js.map