@@ -6,6 +6,10 @@ import type { ExtensionType } from '@blocksuite/store';
|
|||||||
export function patchForAudioEmbedView(reactToLit: ReactToLit): ExtensionType {
|
export function patchForAudioEmbedView(reactToLit: ReactToLit): ExtensionType {
|
||||||
return {
|
return {
|
||||||
setup: di => {
|
setup: di => {
|
||||||
|
// do not show audio block on mobile
|
||||||
|
if (BUILD_CONFIG.isMobileEdition) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
di.override(AttachmentEmbedConfigIdentifier('audio'), () => ({
|
di.override(AttachmentEmbedConfigIdentifier('audio'), () => ({
|
||||||
name: 'audio',
|
name: 'audio',
|
||||||
check: (model, maxFileSize) =>
|
check: (model, maxFileSize) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user