File tree 5 files changed +5
-8
lines changed
5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- LOCAL_TESTING = http://localhost:8081/
2
-
3
- FORCE_STAGING =
1
+ # LOCAL_TESTING=http://localhost:8081/
4
2
5
3
# These are used for linking of static assets so that
6
4
# users don't have to download them.
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const ecc = require('eosjs-ecc');
12
12
13
13
const Embedder = require ( 'embedder' ) ;
14
14
const files = require ( './services/files' ) ;
15
- const getHost = require ( './services/getHost' ) ;
16
15
17
16
18
17
const quit = ( ) => {
@@ -123,7 +122,6 @@ const createScatterInstance = async () => {
123
122
! ! storage . getGeneralSetting ( 'testingMode' ) ,
124
123
) ;
125
124
126
- // await Embedder.removeOldFiles();
127
125
if ( ! process . env . LOCAL_TESTING ) {
128
126
if ( ! await Embedder . check ( ) ) {
129
127
// if(true){
@@ -142,7 +140,6 @@ const createScatterInstance = async () => {
142
140
}
143
141
}
144
142
}
145
- // if(!process.env.LOCAL_TESTING && !await Embedder.check()) return process.exit(0);
146
143
147
144
files . toggleAllowInternals ( false ) ;
148
145
@@ -291,6 +288,7 @@ global.wallet = {
291
288
292
289
setWalletData :wallet . updateScatter ,
293
290
getWalletData :wallet . getScatter ,
291
+ getRawData :wallet . getRawData ,
294
292
clearWalletData :storage . removeScatter ,
295
293
getDefaultPath :files . getDefaultPath ,
296
294
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = () => {
4
4
if ( process . env . LOCAL_TESTING ) return process . env . LOCAL_TESTING ;
5
5
6
6
let host = getSimpleMode ( ) ? process . env . WEB_HOST_SIMPLE_MODE : process . env . WEB_HOST ;
7
- if ( getGeneralSetting ( 'testingMode' ) || process . env . FORCE_STAGING ) host = 'staging.' + host ;
7
+ if ( getGeneralSetting ( 'testingMode' ) ) host = 'staging.' + host ;
8
8
9
9
return `https://${ host } ` ;
10
10
} ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const init = () => {
38
38
39
39
const setScatter = ( _s ) => scatter = JSON . parse ( JSON . stringify ( _s ) ) ;
40
40
const getScatter = ( ) => scatter ? JSON . parse ( JSON . stringify ( scatter ) ) : null ;
41
+ const getRawData = ( ) => storage . getScatter ( ) ;
41
42
42
43
const exists = ( ) => ! ! scatter ;
43
44
@@ -307,6 +308,7 @@ const EXPORTS = {
307
308
updateScatter,
308
309
setScatter,
309
310
getScatter,
311
+ getRawData,
310
312
sign,
311
313
getPrivateKey,
312
314
reloading,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ if(!platform) return quit('Please run as `yarn release [win/linux/mac]`');
11
11
console . log ( 'Building for platform: ' , platform ) ;
12
12
13
13
if ( process . env . LOCAL_TESTING ) return quit ( 'LOCAL_TESTING is enabled' ) ;
14
- if ( process . env . FORCE_STAGING ) return quit ( 'FORCE_STAGING is enabled' ) ;
15
14
16
15
const run = ( cmd , callback = ( ) => { } ) => {
17
16
console . log ( 'running: ' , cmd )
You can’t perform that action at this time.
0 commit comments