diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index cb205a7f2..35b02a482 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -190,16 +190,13 @@ function initExtension(uuid) { return; } - if (!extensionModule.init) { - logExtensionError(uuid, 'missing \'init\' function'); - return; - } - - try { - extensionState = extensionModule.init(extension); - } catch (e) { - logExtensionError(uuid, 'Failed to evaluate init function:' + e); - return; + if (extensionModule.init) { + try { + extensionState = extensionModule.init(extension); + } catch (e) { + logExtensionError(uuid, 'Failed to evaluate init function:' + e); + return; + } } if (!extensionState)