Update build to pull from external repos

This commit is contained in:
Jaco Greeff
2017-08-01 14:41:13 +02:00
parent c509733a30
commit f8bf4a1522
10 changed files with 607 additions and 828 deletions

View File

@@ -27,11 +27,9 @@ import web3extensions from './web3.extensions';
function initProvider () {
let [, appId] = window.location.pathname.split('/');
if (appId.indexOf('.html') !== -1) {
appId = appId.replace('.html', '');
}
console.log('window.location.pathname', window.location.pathname, appId);
if (appId.substr(0, 2) !== '0x') {
if (!Api.util.isHex(appId)) {
appId = Api.util.sha3(appId);
}