Skip to content

Commit 1464c21

Browse files
committed
fix magisk error
1 parent c45585c commit 1464c21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Website/src/native/Shell.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,23 @@ class ShellClass extends Native<NativeShell> {
152152
*/
153153
public isKernelSU(): boolean {
154154
// `proc.exist()` is always `false` on browsers
155-
return this._mountDetect(/(KSU|KernelSU)/i);
155+
return this._mountDetect(/(KSU|KernelSU)/);
156156
}
157157

158158
/**
159159
* Determine if MMRL runs with Magisk
160160
*/
161161
public isMagiskSU(): boolean {
162162
// `proc.exist()` is always `false` on browsers
163-
return this._mountDetect(/(magisk|core\/mirror|core\/img)/i);
163+
return this._mountDetect(/(magisk|core\/mirror|core\/img)/);
164164
}
165165

166166
/**
167167
* Determine if MMRL runs with APatch
168168
*/
169169
public isAPatchSU(): boolean {
170170
// `proc.exist()` is always `false` on browsers
171-
return this._mountDetect(/(APD|APatch)/i);
171+
return this._mountDetect(/(APD|APatch)/);
172172
}
173173

174174
/**

0 commit comments

Comments
 (0)