forked from OpenBazaar/OpenBazaar-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
39 lines (31 loc) · 1.03 KB
/
config.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
30
31
32
33
34
35
36
37
38
39
'use strict';
// App specific configuration
var testnet = localStorage.getItem('testnet') == 'true',
bitcoinValidationRegexMainnet = "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$",
bitcoinValidationRegexTestnet = "^[2mn][a-km-zA-HJ-NP-Z1-9]{25,34}$",
bitcoinValidationRegex = testnet ? bitcoinValidationRegexTestnet : bitcoinValidationRegexMainnet;
module.exports = {
testnet: testnet,
bitcoinValidationRegex: bitcoinValidationRegex,
keyShortcutPrefix: window.navigator.platform === 'MacIntel' ? '⌘' : 'Ctrl+',
keyShortcuts: {
undo: 'z',
discover: 'd',
myPage: 't',
customizePage: 'e',
create: 'n',
purchases: 'k',
sales: 'm',
cases: 'j',
settings: 'g',
addressBar: 'l',
save: 's',
refresh: 'r',
restart: 'f'
},
maxTagHistory: 1000,
maxHandleHistory: 1000,
setTestnet: function(testNetBoolean){
localStorage.setItem('testnet', testNetBoolean);
}
};