Skip to content

Commit

Permalink
Load onion url from API only
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Mar 6, 2021
1 parent 475199d commit c2d2b75
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
7 changes: 0 additions & 7 deletions docker-entrypoint.sh

This file was deleted.

1 change: 0 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default {
*/
publicRuntimeConfig: {
URL: process.env.BITCART_STORE_API_URL || "http://localhost:8000",
ONION_URL: process.env.BITCART_STORE_API_ONION_URL,
SOCKS_PROXY: process.env.BITCART_STORE_SOCKS_PROXY,
},
/*
Expand Down
3 changes: 1 addition & 2 deletions store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const getters = {
},
apiOnionURL({ services, env }) {
const service = services["BitcartCC Merchants API"]
return env.ONION_URL ? env.ONION_URL : service ? service.hostname : ""
return service ? service.hostname : ""
},
apiURL({ onion, env }, { apiOnionURL }) {
return onion && apiOnionURL ? apiOnionURL : env.URL
Expand All @@ -65,7 +65,6 @@ export const actions = {
loadEnv({ commit }, { env, req }) {
commit("setEnv", {
URL: env.URL,
ONION_URL: env.ONION_URL,
SOCKS_PROXY: env.SOCKS_PROXY,
})
if (req) {
Expand Down
2 changes: 1 addition & 1 deletion version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const VERSION = "0.3.0.1"
const VERSION = "0.3.1.0"

export default VERSION

0 comments on commit c2d2b75

Please sign in to comment.