feat: anti-detection

Musescore will send a track event "MSCZDOWNLOADER_INSTALLED" to its backend if detected "Download MSCZ"
This commit is contained in:
Xmader 2020-10-26 15:43:29 -04:00
parent b8e87a9f6d
commit 53131fc60d

View file

@ -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)