parent
242e3384b2
commit
522a2bdab3
|
@ -164,7 +164,7 @@ function configDialog(style) {
|
|||
return;
|
||||
}
|
||||
saving = true;
|
||||
return BG.usercssHelper.save(style)
|
||||
return BG.usercssHelper.save(BG.deepCopy(style))
|
||||
.then(saved => {
|
||||
varsInitial = getInitialValues(deepCopy(saved.usercssData.vars));
|
||||
vars.forEach(va => onchange({target: va.input, justSaved: true}));
|
||||
|
|
|
@ -361,7 +361,7 @@ Object.assign(handleEvent, {
|
|||
if (styleIsUsercss) {
|
||||
getStylesSafe({id: styleId}).then(([style]) => {
|
||||
hotkeys.setState(false);
|
||||
configDialog(style).then(() => {
|
||||
configDialog(deepCopy(style)).then(() => {
|
||||
hotkeys.setState(true);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user