You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
fix: lines variable not declared; improve: style of web UI (#43)
This commit fixes an issue where "lines" variable would not be declared and improves the style of the web UI. Signed-off-by: SheepChef <50871867+SheepChef@users.noreply.github.com> Co-authored-by: Pedro.js <pedroolimpioguerra@gmail.com>
This commit is contained in:
@@ -88,8 +88,9 @@ a {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
padding: 25px 15px;
|
padding: 20px 35px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
border-bottom: #585b5d solid 1px;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -199,7 +200,7 @@ a {
|
|||||||
.small_card {
|
.small_card {
|
||||||
background: var(--small-card);
|
background: var(--small-card);
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
padding: 5px 10px 0 10px;
|
padding: 5px 15px 0 15px;
|
||||||
margin: 15px 15px 0 15px;
|
margin: 15px 15px 0 15px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ export function setErrorData(errorLog) {
|
|||||||
const ptrace64Cmd = await exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace64 info')
|
const ptrace64Cmd = await exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace64 info')
|
||||||
|
|
||||||
if (ptrace64Cmd.errno === 0) {
|
if (ptrace64Cmd.errno === 0) {
|
||||||
const [ version_line, _, process_line, daemon_running_or_root_impl_line, daemon_running_line ] = ptrace64Cmd.stdout.split('\n')
|
const [ version_line, _, process_line, daemon_running_or_root_impl_line, daemon_running_line, module_amount_line ] = ptrace64Cmd.stdout.split('\n')
|
||||||
|
let modules_amount = module_amount_line.split(': ')[1]
|
||||||
|
|
||||||
/* INFO: Root implementation and ReZygisk version parsing */
|
/* INFO: Root implementation and ReZygisk version parsing */
|
||||||
if (daemon_running_line) {
|
if (daemon_running_line) {
|
||||||
@@ -82,7 +83,7 @@ export function setErrorData(errorLog) {
|
|||||||
zygote64_status = UNEXPECTED_FAIL
|
zygote64_status = UNEXPECTED_FAIL
|
||||||
}
|
}
|
||||||
|
|
||||||
let modules_amount = lines[5].split(': ')[1]
|
const lines = ptrace64Cmd.stdout.split('\n')
|
||||||
|
|
||||||
if (modules_amount !== 'N/A') {
|
if (modules_amount !== 'N/A') {
|
||||||
modules_amount = parseInt(modules_amount)
|
modules_amount = parseInt(modules_amount)
|
||||||
@@ -107,7 +108,8 @@ export function setErrorData(errorLog) {
|
|||||||
const ptrace32Cmd = await exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace32 info')
|
const ptrace32Cmd = await exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace32 info')
|
||||||
|
|
||||||
if (ptrace32Cmd.errno === 0) {
|
if (ptrace32Cmd.errno === 0) {
|
||||||
const [ version_line, _, process_line, daemon_running_or_root_impl_line, daemon_running_line ] = ptrace32Cmd.stdout.split('\n')
|
const [ version_line, _, process_line, daemon_running_or_root_impl_line, daemon_running_line, module_amount_line ] = ptrace32Cmd.stdout.split('\n')
|
||||||
|
let modules_amount = module_amount_line.split(': ')[1]
|
||||||
|
|
||||||
/* INFO: Root implementation and ReZygisk version parsing -- Necessary if 64-bit fails */
|
/* INFO: Root implementation and ReZygisk version parsing -- Necessary if 64-bit fails */
|
||||||
if (daemon_running_line) {
|
if (daemon_running_line) {
|
||||||
@@ -127,7 +129,7 @@ export function setErrorData(errorLog) {
|
|||||||
zygote32_status = UNEXPECTED_FAIL
|
zygote32_status = UNEXPECTED_FAIL
|
||||||
}
|
}
|
||||||
|
|
||||||
let modules_amount = lines[5].split(': ')[1]
|
const lines = ptrace32Cmd.stdout.split('\n')
|
||||||
|
|
||||||
if (modules_amount !== 'N/A') {
|
if (modules_amount !== 'N/A') {
|
||||||
modules_amount = parseInt(modules_amount)
|
modules_amount = parseInt(modules_amount)
|
||||||
@@ -195,4 +197,4 @@ export function setErrorData(errorLog) {
|
|||||||
</div>
|
</div>
|
||||||
</div>`
|
</div>`
|
||||||
})
|
})
|
||||||
})().catch((err) => setError('WebUI', err.stack ? err.stack : err.message))
|
})().catch((err) => setError('WebUI', err.stack ? err.stack : err.message))
|
||||||
|
|||||||
Reference in New Issue
Block a user