mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 05:48:59 +08:00
@@ -6,6 +6,10 @@ import type { ExtensionType } from '@blocksuite/store';
|
||||
export function patchForAudioEmbedView(reactToLit: ReactToLit): ExtensionType {
|
||||
return {
|
||||
setup: di => {
|
||||
// do not show audio block on mobile
|
||||
if (BUILD_CONFIG.isMobileEdition) {
|
||||
return;
|
||||
}
|
||||
di.override(AttachmentEmbedConfigIdentifier('audio'), () => ({
|
||||
name: 'audio',
|
||||
check: (model, maxFileSize) =>
|
||||
|
||||
Reference in New Issue
Block a user