Limit abcjs imports
This commit is contained in:
parent
d2af43ac1c
commit
7828649b3f
@ -1,4 +1,4 @@
|
||||
import abcjs from 'abcjs';
|
||||
import renderAbc from 'abcjs/src/api/abc_tunebook_svg';
|
||||
import extensionSvc from '../services/extensionSvc';
|
||||
|
||||
const render = (elt) => {
|
||||
@ -8,7 +8,7 @@ const render = (elt) => {
|
||||
divElt.className = 'abc-notation-block';
|
||||
// Replace the pre element with the div
|
||||
elt.parentNode.parentNode.replaceChild(divElt, elt.parentNode);
|
||||
abcjs.renderAbc(divElt, content, {});
|
||||
renderAbc(divElt, content, {});
|
||||
};
|
||||
|
||||
extensionSvc.onGetOptions((options, properties) => {
|
||||
|
Loading…
Reference in New Issue
Block a user