Xmind Embed const viewer = new XMindEmbedViewer({ el: '#container', region: 'cn' }) const fileUrl = new URL(decodeURI(new URL(window.location.href).searchParams.get('file'))) fetch(fileUrl.href).then(res => res.arrayBuffer()).then(file => viewer.load(file))