Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
F
face
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Иван Кубота
  • face
  • Repository

Switch branch/tag
  • face
  • src
  • env
  • index.ts
Find file
BlameHistoryPermalink
  • Alexander Gusev's avatar
    fix env to work in electron correctly · c04ecdc4
    Alexander Gusev authored Apr 19, 2020
    The problem is: electron env includes and browser and nodejs together.
    Therefore, both isBrowser and isNodejs function will return true.
    The comment in the code mentions, that isBrowser is explictly called first
    to prevent electron renderer process to be initialized with
    wrong environment due to isNodejs() returning true.
    But current code (before the change) executes both isBrowser and isNodejs blocks.
    This commit resolves the issue.
    c04ecdc4
index.ts 1.76 KB
EditWeb IDE
×

Replace index.ts

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.