diff --git a/packages/basic.gblib/services/GBVMService.ts b/packages/basic.gblib/services/GBVMService.ts index f8e15835..59b35b39 100644 --- a/packages/basic.gblib/services/GBVMService.ts +++ b/packages/basic.gblib/services/GBVMService.ts @@ -592,7 +592,7 @@ export class GBVMService extends GBService { // Setups refresh token mechanism. console.log(1); console.log(this.tokens); - const tokens = this.tokens??.split(','); + const tokens = this.tokens ? this.tokens.split(',') : []; const interval = 60000; // 1 hour. for(i in tokens) { @@ -890,7 +890,6 @@ export class GBVMService extends GBService { let variables = []; - // These variables will be automatically be available as normal BASIC variables. try { @@ -957,6 +956,7 @@ export class GBVMService extends GBService { }); sandbox['tokens'] = tokensList.join(','); + console.log(sandbox['tokens']); sandbox['variables'] = variables; sandbox['id'] = sys.getRandomId(); sandbox['username'] = await dk.userName({ pid }); diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index e75497e5..5e95cbdc 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -1610,7 +1610,6 @@ export class SystemKeywords { } - static aa; /** * Calls any REST API by using GET HTTP method. *