Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
fix bug path dapps_list
Browse files Browse the repository at this point in the history
  • Loading branch information
Harzu committed Nov 17, 2017
1 parent 8d8328e commit 2e9c916
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DApps/dicedapp_v2/lib/DC.js

Large diffs are not rendered by default.

Binary file modified DApps/example.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion public/server.electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const filetypes = {
*/

// Find DApps folder for current ENV
let dapps_path = __dirname+_config.dapps_path
let dapps_path = __dirname + _config.dapps_path
if (typeof app != 'undefined') {
dapps_path = (app.getPath('userData') + _config.dapps_path).split('//').join('/')

Expand Down
2 changes: 1 addition & 1 deletion src/server.electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const filetypes = {
*/

// Find DApps folder for current ENV
let dapps_path = __dirname+_config.dapps_path
let dapps_path = __dirname + _config.dapps_path
if (typeof app != 'undefined') {
dapps_path = (app.getPath('userData') + _config.dapps_path).split('//').join('/')

Expand Down
5 changes: 4 additions & 1 deletion src/view/components/screens/dev/dapps_list.tag
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import DApps from 'DApps/DApps'
import './dapps_list.less'

const fs = require('fs')

<dapps_list>
<script>

Expand Down Expand Up @@ -31,7 +34,7 @@ import './dapps_list.less'
this.on('mount', ()=>{
this.upd_i = setInterval(()=>{
this.dapps = DApps.List
this.dapps_path = DApps.info.dapps_path
this.dapps_path = DApps.info.dapps_path.split(/\/\w+\/\.\./i).join('')
this.update()
}, 1000)

Expand Down

0 comments on commit 2e9c916

Please sign in to comment.