Skip to content

Commit

Permalink
Client-side config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKo7v committed Dec 15, 2017
1 parent eccd448 commit 5a7c644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
header('Content-Type: application/javascript');

$esCfg = require_once dirname(__FILE__) . '/service/config.php';
unset($esCfg['client']['tokens']);

// Remove client-side unwanted options
foreach(array('ethereum', 'mongo', 'apiKeys', 'redirects') as $key) unset($esCfg[$key]);
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
}
}
} ?>
<script>Ethplorer.Config.updateLink = "<?php echo $aConfig["client"]["updateLink"];?>";</script>
<script src="/js/config.js"></script>
<script src="/js/md5.min.js"></script>
<script src="/js/sha3.min.js"></script>
<script src="/js/qrcode.min.js"></script>
Expand Down

0 comments on commit 5a7c644

Please sign in to comment.