This commit is contained in:
ayunami2000 2022-10-27 13:39:57 -04:00 committed by GitHub
parent 836af8f4b8
commit b60ba49f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@
const fileItem = epkFiles[selectedFile];
editorName.innerText = fileItem.name;
const lowerName = fileItem.name.toLowerCase();
if (lowerName.endsWith('.mp3')) {
if (lowerName.endsWith('.mp3') || lowerName.endsWith('.ogg')) {
editor.className = 'modea';
editorAudio.src = window.URL.createObjectURL(fileItem.data);
} else if (lowerName.endsWith('.png')) {
@ -327,4 +327,4 @@
};
</script>
</body>
</html>
</html>