mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(frontend): use Buffer.from for utf-8 encoding when loading existing configurations
This commit is contained in:
@@ -489,7 +489,9 @@ export default function Configure() {
|
||||
if (isValueEncrypted(config) || config.startsWith('B-')) {
|
||||
throw new Error('Encrypted Config Not Supported');
|
||||
} else {
|
||||
decodedConfig = JSON.parse(atob(decodeURIComponent(config)));
|
||||
decodedConfig = JSON.parse(
|
||||
Buffer.from(decodeURIComponent(config), 'base64').toString('utf-8')
|
||||
);
|
||||
}
|
||||
return decodedConfig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user