Ui 2 packages (#6169)
* Ensure all internal dapps have package.json * Update compilation rules # Conflicts: # js/src/redux/providers/balancesActions.js # js/src/ui/Form/TypedInput/typedInput.js * Remove SignerIcon * Cleanup providers * Enable request of new token from app * Queue when no token (yet) * Add location & token request * Cleanup send logic * Request token * Request comms token * Remove yarn.lock (not updated) * Update version to 1.99.99 (publish prepare) * Move jsonrpc to seperate repo * Update jsonrpc references * Update repo info * Update repo info * Additional debugging * Update repo references * Move ABI to js-abi repo * Move webWorker to shared * Fix package reference * Worker location * Move js-ui & js-shared components * Update file references * Update package repo locations * Remove debugging info * Cleanup debug * Split api into own repo * Update api local references * Update app loading * Update dependencies * Allow serving of /parity-utils * Error when EthereumProvider has not been attached * Use inject.js * Correct appId retrieval
This commit is contained in:
20
js/packages/dapp-githubhint/package.json
Normal file
20
js/packages/dapp-githubhint/package.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "@parity/dapp-githubhint",
|
||||
"description": "Parity dapps",
|
||||
"version": "1.99.99",
|
||||
"main": "index.js",
|
||||
"author": "Parity Team <admin@parity.io>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/paritytech/dapp-githubhint.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"scripts": {},
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
},
|
||||
"peerDependencies": {}
|
||||
}
|
||||
@@ -17,6 +17,11 @@
|
||||
import Api from '@parity/api';
|
||||
|
||||
const ethereumProvider = window.ethereum || window.parent.ethereum;
|
||||
|
||||
if (!ethereumProvider) {
|
||||
throw new Error('Unable to locate EthereumProvider, object not attached');
|
||||
}
|
||||
|
||||
const api = new Api(ethereumProvider);
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user