Files
ReZygisk/webroot/js/monitorActions.js
T
ThePedroo ea42fbea41 fix: monitor information
This commit fixes monitor information, which now is properly working and named, and also has proper status words.
2024-11-12 20:25:57 -03:00

20 lines
641 B
JavaScript

import { exec } from './kernelsu.js'
const monitor_start = document.getElementById('monitor_start_button')
const monitor_stop = document.getElementById('monitor_stop_button')
const monitor_pause = document.getElementById('monitor_pause_button')
if (monitor_start) {
monitor_start.addEventListener('click', () => {
exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace64 ctl start')
})
monitor_stop.addEventListener('click', () => {
exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace64 ctl exit')
})
monitor_pause.addEventListener('click', () => {
exec('/data/adb/modules/zygisksu/bin/zygisk-ptrace64 ctl stop')
})
}