Fix MarvinJS initiaization [SCI-10260]

This commit is contained in:
Martin Artnik 2024-02-21 13:29:07 +01:00
parent a00648a80e
commit 35ce14a929

View file

@ -320,9 +320,7 @@ $(document).on('click', '.gene-sequence-edit-button', function() {
}); });
function initMarvinJs() { function initMarvinJs() {
if (!window.MarvinJsEditor) { MarvinJsEditor = MarvinJsEditorApi();
MarvinJsEditor = MarvinJsEditorApi();
}
if (MarvinJsEditor.enabled()) { if (MarvinJsEditor.enabled()) {
if (typeof (ChemicalizeMarvinJs) === 'undefined') { if (typeof (ChemicalizeMarvinJs) === 'undefined') {