Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
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
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
face
Commits
a86f011d
Unverified
Commit
a86f011d
authored
Apr 22, 2020
by
Vincent Mühler
Committed by
GitHub
Apr 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #599 from goooseman/fix/electron-env
fix env to work in electron correctly
parents
8609b25a
c04ecdc4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.ts
src/env/index.ts
+2
-2
No files found.
src/env/index.ts
View file @
a86f011d
...
@@ -22,10 +22,10 @@ function initialize() {
...
@@ -22,10 +22,10 @@ function initialize() {
// check for isBrowser() first to prevent electron renderer process
// check for isBrowser() first to prevent electron renderer process
// to be initialized with wrong environment due to isNodejs() returning true
// to be initialized with wrong environment due to isNodejs() returning true
if
(
isBrowser
())
{
if
(
isBrowser
())
{
setEnv
(
createBrowserEnv
())
return
setEnv
(
createBrowserEnv
())
}
}
if
(
isNodejs
())
{
if
(
isNodejs
())
{
setEnv
(
createNodejsEnv
())
return
setEnv
(
createNodejsEnv
())
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment