Skip to content

Commit

Permalink
fix magisk error
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed May 11, 2024
1 parent c45585c commit 1464c21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Website/src/native/Shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,23 @@ class ShellClass extends Native<NativeShell> {
*/
public isKernelSU(): boolean {
// `proc.exist()` is always `false` on browsers
return this._mountDetect(/(KSU|KernelSU)/i);
return this._mountDetect(/(KSU|KernelSU)/);
}

/**
* Determine if MMRL runs with Magisk
*/
public isMagiskSU(): boolean {
// `proc.exist()` is always `false` on browsers
return this._mountDetect(/(magisk|core\/mirror|core\/img)/i);
return this._mountDetect(/(magisk|core\/mirror|core\/img)/);
}

/**
* Determine if MMRL runs with APatch
*/
public isAPatchSU(): boolean {
// `proc.exist()` is always `false` on browsers
return this._mountDetect(/(APD|APatch)/i);
return this._mountDetect(/(APD|APatch)/);
}

/**
Expand Down

0 comments on commit 1464c21

Please sign in to comment.