mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 13:49:57 -05:00
Removing accidental log.
This commit is contained in:
parent
1c3288d910
commit
8f7d9f208c
1 changed files with 1 additions and 1 deletions
|
|
@ -87,6 +87,7 @@ function getVideoModal(path) {
|
||||||
function getAudioModal(path) {
|
function getAudioModal(path) {
|
||||||
const url = getMediaPathURL(path);
|
const url = getMediaPathURL(path);
|
||||||
const name = path['path'].replace(/^.*[\\\/]/, '');
|
const name = path['path'].replace(/^.*[\\\/]/, '');
|
||||||
|
// Some audio files may not have the correct mimetype. Trust the suffix identifies an audio file.
|
||||||
const type = path['mimetype'] !== 'application/octet-stream' ? path['mimetype'] : 'audio/mpeg';
|
const type = path['mimetype'] !== 'application/octet-stream' ? path['mimetype'] : 'audio/mpeg';
|
||||||
return <React.Fragment>
|
return <React.Fragment>
|
||||||
<ModalHeader>
|
<ModalHeader>
|
||||||
|
|
@ -136,7 +137,6 @@ export function FilePreviewWrapper({children}) {
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
setPreviewModal(null);
|
setPreviewModal(null);
|
||||||
console.log(previewFile);
|
|
||||||
if (previewFile && !_.isObject(previewFile)) {
|
if (previewFile && !_.isObject(previewFile)) {
|
||||||
console.error(`Unknown previewFile type: ${typeof previewFile}`);
|
console.error(`Unknown previewFile type: ${typeof previewFile}`);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue