Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
whats-open-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicholas J Anderson
whats-open-web
Commits
9b7d4eb6
Commit
9b7d4eb6
authored
Jan 29, 2018
by
Andrew Hrdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with requiring redux dev tools. Closes
#29
. (Also set 2.1-dev to staging branch).
parent
67ade9f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
package-lock.json
package-lock.json
+5
-0
src/index.js
src/index.js
+1
-1
No files found.
.gitlab-ci.yml
View file @
9b7d4eb6
...
...
@@ -25,7 +25,7 @@ deploy_staging:
name
:
staging
url
:
https://whatsopen.gmu.io
only
:
-
master
-
2.1-dev
deploy_production
:
stage
:
deploy
...
...
@@ -36,4 +36,4 @@ deploy_production:
when
:
manual
only
:
-
master
package-lock.json
View file @
9b7d4eb6
...
...
@@ -7617,6 +7617,11 @@
"sha.js"
:
"2.4.9"
}
},
"phone-formatter"
:
{
"version"
:
"0.0.2"
,
"resolved"
:
"https://registry.npmjs.org/phone-formatter/-/phone-formatter-0.0.2.tgz"
,
"integrity"
:
"sha1-82JsfSdIYPAU9w9DqHVmoWsOes4="
},
"pify"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/pify/-/pify-2.3.0.tgz"
,
...
...
src/index.js
View file @
9b7d4eb6
...
...
@@ -20,7 +20,7 @@ const extension = window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS
const
isProduction
=
process
.
env
.
NODE_ENV
===
'
production
'
;
let
enhance
;
if
(
isProduction
)
{
if
(
isProduction
||
!
extension
)
{
enhance
=
compose
(
applyMiddleware
(
ReduxThunk
,
routerMiddleware
(
history
)));
}
else
{
enhance
=
compose
(
applyMiddleware
(
ReduxThunk
,
routerMiddleware
(
history
)),
extension
);
...
...
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