mirror of
https://github.com/unraid/api.git
synced 2026-04-29 19:49:48 -05:00
feat: add regState
This commit is contained in:
@@ -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, '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user