File tree Expand file tree Collapse file tree 5 files changed +5
-8
lines changed
Expand file tree Collapse file tree 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/
42
53# These are used for linking of static assets so that
64# 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');
1212
1313const Embedder = require ( 'embedder' ) ;
1414const files = require ( './services/files' ) ;
15- const getHost = require ( './services/getHost' ) ;
1615
1716
1817const quit = ( ) => {
@@ -123,7 +122,6 @@ const createScatterInstance = async () => {
123122 ! ! storage . getGeneralSetting ( 'testingMode' ) ,
124123 ) ;
125124
126- // await Embedder.removeOldFiles();
127125 if ( ! process . env . LOCAL_TESTING ) {
128126 if ( ! await Embedder . check ( ) ) {
129127 // if(true){
@@ -142,7 +140,6 @@ const createScatterInstance = async () => {
142140 }
143141 }
144142 }
145- // if(!process.env.LOCAL_TESTING && !await Embedder.check()) return process.exit(0);
146143
147144 files . toggleAllowInternals ( false ) ;
148145
@@ -291,6 +288,7 @@ global.wallet = {
291288
292289 setWalletData :wallet . updateScatter ,
293290 getWalletData :wallet . getScatter ,
291+ getRawData :wallet . getRawData ,
294292 clearWalletData :storage . removeScatter ,
295293 getDefaultPath :files . getDefaultPath ,
296294
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = () => {
44 if ( process . env . LOCAL_TESTING ) return process . env . LOCAL_TESTING ;
55
66 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 ;
88
99 return `https://${ host } ` ;
1010} ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const init = () => {
3838
3939const setScatter = ( _s ) => scatter = JSON . parse ( JSON . stringify ( _s ) ) ;
4040const getScatter = ( ) => scatter ? JSON . parse ( JSON . stringify ( scatter ) ) : null ;
41+ const getRawData = ( ) => storage . getScatter ( ) ;
4142
4243const exists = ( ) => ! ! scatter ;
4344
@@ -307,6 +308,7 @@ const EXPORTS = {
307308 updateScatter,
308309 setScatter,
309310 getScatter,
311+ getRawData,
310312 sign,
311313 getPrivateKey,
312314 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]`');
1111console . log ( 'Building for platform: ' , platform ) ;
1212
1313if ( process . env . LOCAL_TESTING ) return quit ( 'LOCAL_TESTING is enabled' ) ;
14- if ( process . env . FORCE_STAGING ) return quit ( 'FORCE_STAGING is enabled' ) ;
1514
1615const run = ( cmd , callback = ( ) => { } ) => {
1716 console . log ( 'running: ' , cmd )
You can’t perform that action at this time.
0 commit comments