How to use the electron-to-chromium.fullVersions function in electron-to-chromium

To help you get started, we’ve selected a few electron-to-chromium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wavebox / waveboxapp / src / app / src / SessionManager / AccountSessionManager.js View on Github external
const settingsState = settingsStore.getState()
    const userState = userStore.getState()
    const ses = session.fromPartition(partitionId)

    // Downloads
    DownloadManager.setupUserDownloadHandlerForPartition(partitionId)

    // Permissions & env
    PermissionManager.setupPermissionHandler(partitionId)

    // UA
    if (useCustomUserAgent && customUserAgentString) {
      ses.setUserAgent(customUserAgentString)
      this[privManagedUsingCustomUA].add(partitionId)
    } else if (!settingsState.launched.app.polyfillUserAgents) {
      ses.setUserAgent(this._replaceUAChromeVersion(ses.getUserAgent(), e2c.fullVersions[process.versions.electron]))
    } else if (userState.wireConfigLatestCVersion()) {
      ses.setUserAgent(this._replaceUAChromeVersion(ses.getUserAgent(), userState.wireConfigLatestCVersion()))
    }

    // Cookies
    if (artificiallyPersistCookies) {
      SessionManager.webRequestEmitterFromSession(ses).completed.on(undefined, (evt) => {
        this._artificiallyPersistCookies(partitionId)
      })
    }

    // Extensions: CSP
    SessionManager.webRequestEmitterFromSession(ses).headersReceived.onBlocking(undefined, (details, responder) => {
      const updatedHeaders = CRExtensionManager.runtimeHandler.updateContentSecurityPolicy(details.url, details.responseHeaders)
      if (updatedHeaders) {
        responder({ responseHeaders: updatedHeaders })

electron-to-chromium

Provides a list of electron-to-chromium version mappings

ISC
Latest version published 3 days ago

Package Health Score

77 / 100
Full package analysis