Skip to content

Can't access process within preload script #1039

Closed

Description

@CharlieHess

Within the preload script of a renderer process, I'm unable to access the process object without throwing an exception.

Activity

  1. zcbenz commented on Jan 21, 2015

    @zcbenz
    Contributor

    Can you run the following code in preload script and paste the result?

    console.log(window.location.href);
    console.log(process);
    console.log(module);
    console.log(require);
  2. CharlieHess commented on Jan 21, 2015

    @CharlieHess
    ContributorAuthor

    It's intermittent for me; as soon as I tried to log them I was able to access the process object. I'll try it next time it occurs.

  3. CharlieHess commented on Jan 26, 2015

    @CharlieHess
    ContributorAuthor

    @zcbenz: Just tested this with your fix for #1038, it's working 💯 percent now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions