diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-27 21:48:59 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-27 21:48:59 +0800 |
commit | 58c6efd5ee94d8daf3a2bd19426de466d454b690 (patch) | |
tree | dc8158e37c9cdbdb54d5f80f70d3cdde8fb3c734 /utils | |
parent | aa2a8cc4dff60c19e17383daf76370a8b6aa4c79 (diff) | |
download | SoopyV2-58c6efd5ee94d8daf3a2bd19426de466d454b690.tar.gz SoopyV2-58c6efd5ee94d8daf3a2bd19426de466d454b690.tar.bz2 SoopyV2-58c6efd5ee94d8daf3a2bd19426de466d454b690.zip |
fix networth gui loading data + fix bug with syncronus api loading
Diffstat (limited to 'utils')
-rw-r--r-- | utils/networkUtils.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/networkUtils.js b/utils/networkUtils.js index aaad6e2..2f84128 100644 --- a/utils/networkUtils.js +++ b/utils/networkUtils.js @@ -82,7 +82,7 @@ if(!global.networkUtilsThingSoopy){ if(!callback){ ret.sync() - return this.loadedString + return loadedString } ret.async(()=>{ @@ -108,14 +108,12 @@ if(!global.networkUtilsThingSoopy){ }, responseCode: (callback)=>{ if(!callback){ - if(loadedConnection === undefined){ - ret.text() - } + ret.sync() return loadedConnection.getResponseCode() } - ret.text(data=>{ + ret.async(data=>{ callback(loadedConnection.getResponseCode()) }) } |