mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
refactoring
This commit is contained in:
@@ -42,7 +42,7 @@ export function WakeOnLan() {
|
||||
|
||||
self.setState = function(state) {
|
||||
if (state) {
|
||||
$("wol").classList.toggle("feature-disabled", !state.enabled);
|
||||
tools.setFeatureEnabled($("wol"), state.enabled);
|
||||
__target = state.target;
|
||||
}
|
||||
wm.switchEnabled($("wol-wakeup-button"), (state && state.enabled));
|
||||
|
||||
Reference in New Issue
Block a user