Skip to content

Commit

Permalink
Merge pull request #67 from ConsenSys/DevMode
Browse files Browse the repository at this point in the history
Removes devMode for now, was causing issues and doesn't seem to be ne…
  • Loading branch information
bmcd authored Nov 20, 2020
2 parents a0832fa + da694a5 commit 7c79703
Show file tree
Hide file tree
Showing 4 changed files with 2,607 additions and 2,029 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"homepage": "https://remix-plugin.goquorum.com/",
"dependencies": {
"@remixproject/plugin": "^0.3.0",
"@remixproject/plugin-iframe": "^0.3.0",
"@remixproject/plugin": "^0.3.3",
"@remixproject/plugin-iframe": "^0.3.3",
"axios": "^0.20.0",
"copy-to-clipboard": "^3.3.1",
"dotenv-flow": "^3.2.0",
Expand Down
6 changes: 2 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ import { Provider } from 'react-redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk'
import { addPublicKey, connectToNetwork, fetchCompilationResult, setError } from './actions'
import { getPluginDevMode, isDevelopment, loadFromLocalStorage } from './utils/EnvUtils'
import { isDevelopment, loadFromLocalStorage } from './utils/EnvUtils'

const store = createStore(rootReducer,
composeWithDevTools(applyMiddleware(thunk)))

const client = createClient(new PluginClient({
devMode: getPluginDevMode()
}))
const client = createClient(new PluginClient({}))

client.onload(async () => {
ReactDOM.render(
Expand Down
22 changes: 0 additions & 22 deletions src/utils/EnvUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,6 @@ export function isDevelopment () {
return process.env.NODE_ENV === 'development'
}

export function getPluginDevMode () {
if (isDevelopment()) {
return {
port: 8080,
origins: [
'http://localhost',
'http://remix-dev.goquorum.com',
'https://remix-dev.goquorum.com',
],
}
} else {
return {
origins: [
'http://remix-dev.goquorum.com',
'https://remix-dev.goquorum.com',
'http://remix-staging.goquorum.com',
'https://remix-staging.goquorum.com',
],
}
}
}

export function saveToLocalStorage(key, value) {
try {
localStorage[key] = value
Expand Down
Loading

0 comments on commit 7c79703

Please sign in to comment.