fix JS files
This commit is contained in:
parent
3c0c7e6f4f
commit
c2a77af323
12 changed files with 130 additions and 116 deletions
|
@ -37,12 +37,12 @@ class Voice {
|
|||
this.updateWave();
|
||||
}
|
||||
updateWave() {
|
||||
const func = this.waveFucnion();
|
||||
const func = this.waveFunction();
|
||||
for (let i = 0; i < this.buffer.length; i++) {
|
||||
this.buffer[i] = func(i / this.audioCtx.sampleRate, this.freq);
|
||||
}
|
||||
}
|
||||
waveFucnion() {
|
||||
waveFunction() {
|
||||
if (typeof this.wave === 'function') {
|
||||
return this.wave;
|
||||
}
|
||||
|
@ -127,12 +127,12 @@ class Voice {
|
|||
}
|
||||
static setNotificationSound(sound) {
|
||||
let userinfos = getBulkInfo();
|
||||
userinfos.preferances.notisound = sound;
|
||||
userinfos.preferences.notisound = sound;
|
||||
localStorage.setItem("userinfos", JSON.stringify(userinfos));
|
||||
}
|
||||
static getNotificationSound() {
|
||||
let userinfos = getBulkInfo();
|
||||
return userinfos.preferances.notisound;
|
||||
return userinfos.preferences.notisound;
|
||||
}
|
||||
}
|
||||
export { Voice as Voice };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue