mirror of
https://github.com/ayunami2000/ayunWebEPK.git
synced 2024-11-21 02:06:05 -08:00
h
This commit is contained in:
parent
836af8f4b8
commit
b60ba49f94
|
@ -269,7 +269,7 @@
|
||||||
const fileItem = epkFiles[selectedFile];
|
const fileItem = epkFiles[selectedFile];
|
||||||
editorName.innerText = fileItem.name;
|
editorName.innerText = fileItem.name;
|
||||||
const lowerName = fileItem.name.toLowerCase();
|
const lowerName = fileItem.name.toLowerCase();
|
||||||
if (lowerName.endsWith('.mp3')) {
|
if (lowerName.endsWith('.mp3') || lowerName.endsWith('.ogg')) {
|
||||||
editor.className = 'modea';
|
editor.className = 'modea';
|
||||||
editorAudio.src = window.URL.createObjectURL(fileItem.data);
|
editorAudio.src = window.URL.createObjectURL(fileItem.data);
|
||||||
} else if (lowerName.endsWith('.png')) {
|
} else if (lowerName.endsWith('.png')) {
|
||||||
|
@ -327,4 +327,4 @@
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user