refactor: custom space for global variables

This commit is contained in:
Andrew Bastin
2021-08-17 14:11:54 +05:30
parent 956ca44ef0
commit ed5b4b6dc5
2 changed files with 92 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import {
getCurrentEnvironment,
getGlobalEnvironment,
getLegacyGlobalEnvironment,
} from "~/newstore/environments"
export default function getEnvironmentVariablesFromScript(script: string) {
@@ -12,7 +12,7 @@ export default function getEnvironmentVariablesFromScript(script: string) {
_variables[variable.key] = variable.value
}
const globalEnv = getGlobalEnvironment()
const globalEnv = getLegacyGlobalEnvironment()
if (globalEnv) {
for (const variable of globalEnv.variables) {