diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 3f23d273e..6611b5a63 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -136,6 +136,10 @@ function enableExtension(uuid) { _signals.emit('extension-state-changed', extension); return; } catch(e) { + if (extension.stylesheet) { + theme.unload_stylesheet(extension.stylesheet); + delete extension.stylesheet; + } logExtensionError(uuid, e); return; }