fixup 227dce01: new styles don't have usercssData

This commit is contained in:
tophf 2018-01-06 09:50:48 +03:00
parent 4a7c675d06
commit 385dda9923

View File

@ -135,7 +135,7 @@ function createSourceEditor(style) {
$('#enabled').checked = style.enabled; $('#enabled').checked = style.enabled;
$('#url').href = style.url; $('#url').href = style.url;
updateTitle(); updateTitle();
return cm.setPreprocessor(style.usercssData.preprocessor); return cm.setPreprocessor((style.usercssData || {}).preprocessor);
} }
function updateTitle() { function updateTitle() {