feat: add regState

This commit is contained in:
Alexis Tyler
2021-04-22 09:29:48 +09:30
parent e1e1132143
commit eb99cd2686
6 changed files with 63 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export const getLicense = async function (context: CoreContext): Promise<CoreRes
// Get license data
const type = varState.data.regTy;
const state = (varState.data.regCheck.trim() === '' ? type : varState.data.regCheck).toUpperCase();
const state = varState.data.regState;
const file = await fs.promises.readFile(varState.data.regFile, 'binary');
const parsedFile = btoa(file).trim().replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');