Skip to content

Commit

Permalink
fix devmode check (#30)
Browse files Browse the repository at this point in the history
- fix devmode check
- [CORE-1255]
  • Loading branch information
S3bb1 authored Apr 15, 2020
1 parent 99c76bc commit 567f35f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### Fixes
- recreate `ipfs-cache` indexeddb on `aborted` event
- add `EVAN_CHAIN` to config `process.env`
- fix devMode check in iframe

### Deprecations

Expand All @@ -19,7 +20,7 @@
### Features
- full refactoring
- full typescript usage
- load local deps also from index.html (dev.html is obsolete)
- load local deps also from index.html (dev.html is obsolete)
- use better ipfs / ens resolving / caching

### Deprecations
Expand All @@ -37,7 +38,7 @@
## Version 2.8.0
### Features
- start routing directly on dapp-browser load, so cached ens addresses can be directly resolved from ipfs, without waiting for bcc
- enable `cached-dapp` dbcp type to get better initial loading speed
- enable `cached-dapp` dbcp type to get better initial loading speed

### Fixes
- add `hidden` class to `initial-loading` only when it was not added before
Expand Down Expand Up @@ -178,7 +179,7 @@
- reduce amount of calls of `vault.generateNewAddresses()`

### Deprecations
- move `zone.js` to `@evan.network/ui-angular-libs` (it's only needed by angular)
- move `zone.js` to `@evan.network/ui-angular-libs` (it's only needed by angular)

## Version 1.7.0
### Features
Expand Down
6 changes: 3 additions & 3 deletions src/app/dapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ function getVersionDBCPHashFromDAppVersion(requiredVersion: string, childENS: st
// check for IPFS hash or usal ens domain name
if (childVersions[requiredVersion].indexOf('Qm') === 0) {
return `${childVersions[requiredVersion]}!dapp-content`;
}
}
return `${ childVersions[requiredVersion] }.${ utils.getDomainName() }!dapp-content`;

}
const msg = `Version not found: ${originalVersion} for DApp ${childDefinition.name}`;
console.error(msg);
Expand Down Expand Up @@ -503,7 +503,7 @@ export async function startDApp(dappEns: string, container = document.body, useD
vault: window.localStorage['evan-vault'],
},
// ensure to only load iframes from ipfs
utils.devMode.indexOf(dappEns.replace(`.${utils.getDomainName()}`, '')) !== -1
(utils.devMode?.includes(dappEns.replace(`.${utils.getDomainName()}`, '')))
? window.location.origin
: ipfs.getIpfsApiUrl(''),
);
Expand Down

0 comments on commit 567f35f

Please sign in to comment.