-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (20 loc) · 801 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* @author PrimusMoney
* @name @primusmoney/ethereum_xtra_web
* @homepage https://www.primusmoney.com/
* @license UNLICENSED
*/
'use strict';
console.log('@primusmoney/ethereum_xtra_web node module');
if ( typeof window !== 'undefined' && window && (typeof window.simplestore === 'undefined')) {
// react-native
console.log('creating window.simplestore in @primusmoney/ethereum_xtra_web index.js');
window.simplestore = {};
window.simplestore.nocreation = true;
} else if ((typeof global !== 'undefined') && (typeof global.simplestore === 'undefined')) {
// nodejs
console.log('creating global.simplestore in @primusmoney/ethereum_xtra_web index.js');
global.simplestore = {};
}
const Ethereum_xtra_web = require('./ethereum_xtra_web.js');
module.exports = Ethereum_xtra_web