mirror of
https://github.com/molstar/molstar.git
synced 2026-06-04 13:30:24 +08:00
Update example to use mol* v5 (#1673)
Rename initViewer to initViewerAsync in documentation
This commit is contained in:
@@ -247,7 +247,7 @@ async function init() {
|
||||
const canvas = <HTMLCanvasElement> document.getElementById('molstar-canvas');
|
||||
const parent = <HTMLDivElement> document.getElementById('molstar-parent');
|
||||
|
||||
if (!(await plugin.initViewer(canvas, parent))) {
|
||||
if (!(await plugin.initViewerAsync(canvas, parent))) {
|
||||
console.error('Failed to init Mol*');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user