bug of custom sound
This commit is contained in:
parent
69d60a7372
commit
62df4e2fac
|
@ -167,10 +167,10 @@ function load() {
|
||||||
var font = ''
|
var font = ''
|
||||||
}
|
}
|
||||||
$('#font').val(font)
|
$('#font').val(font)
|
||||||
$('#c1-file').text(localStorage.getItem('custom1'))
|
$('#c1-file').text(localStorage.getItem('custom1')!= 'null' ? localStorage.getItem('custom1') : '')
|
||||||
$('#c2-file').text(localStorage.getItem('custom2'))
|
$('#c2-file').text(localStorage.getItem('custom2')!= 'null' ? localStorage.getItem('custom2') : '')
|
||||||
$('#c3-file').text(localStorage.getItem('custom3'))
|
$('#c3-file').text(localStorage.getItem('custom3')!= 'null' ? localStorage.getItem('custom3') : '')
|
||||||
$('#c4-file').text(localStorage.getItem('custom4'))
|
$('#c4-file').text(localStorage.getItem('custom4')!= 'null' ? localStorage.getItem('custom4') : '')
|
||||||
var cvol = localStorage.getItem('customVol')
|
var cvol = localStorage.getItem('customVol')
|
||||||
if (cvol) {
|
if (cvol) {
|
||||||
$('#soundvol').val(cvol * 100)
|
$('#soundvol').val(cvol * 100)
|
||||||
|
@ -754,7 +754,7 @@ function customSound(key) {
|
||||||
}
|
}
|
||||||
function customSoundSave(key, file) {
|
function customSoundSave(key, file) {
|
||||||
localStorage.setItem('custom' + key, file)
|
localStorage.setItem('custom' + key, file)
|
||||||
$('#c1-file').text(file)
|
$(`#c${key}-file`).text(file)
|
||||||
}
|
}
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
//最初に読む
|
//最初に読む
|
||||||
|
|
Loading…
Reference in New Issue
Block a user