mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
refactor: Name and comment variable properly
This commit is contained in:
parent
28f6ac150e
commit
45b6a08980
1 changed files with 3 additions and 3 deletions
|
@ -25,12 +25,12 @@ object SpoofClientPatch : BaseSpoofClientPatch(
|
|||
}
|
||||
|
||||
override fun Set<MethodFingerprintResult>.patchUserAgent(context: BytecodeContext) {
|
||||
// Use a random user agent.
|
||||
val randomName = (0..100000).random()
|
||||
// Use a random number as the platform in the user agent string.
|
||||
val platformName = (0..100000).random()
|
||||
|
||||
first().mutableMethod.addInstructions(
|
||||
1,
|
||||
"const-string v3, \"$randomName\"",
|
||||
"const-string v3, \"$platformName\"",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue