feat: anti-detection
Musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend if detected "Download MSCZ"
This commit is contained in:
parent
b8e87a9f6d
commit
53131fc60d
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,5 @@
|
|||
|
||||
import { loadMscore, WebMscore } from './mscore'
|
||||
import { saveAs } from './utils'
|
||||
|
||||
type BtnElement = HTMLButtonElement
|
||||
|
||||
|
@ -50,6 +49,13 @@ export class BtnList {
|
|||
|
||||
const setText = (str: string): void => {
|
||||
textNode.textContent = str
|
||||
|
||||
// Anti-detection:
|
||||
// musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend
|
||||
// if detected "Download MSCZ"
|
||||
Object.defineProperty(textNode, 'textContent', {
|
||||
get () { return 'Download' },
|
||||
})
|
||||
}
|
||||
|
||||
setText(options.name)
|
||||
|
|
Loading…
Reference in a new issue