More specific name

This commit is contained in:
narcolepticinsomniac 2021-07-07 07:51:00 -04:00 committed by GitHub
parent 58fc531515
commit e8e18abe58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,7 +378,7 @@ const styleMan = (() => {
for (const {style: someStyle} of dataMap.values()) {
if (someStyle._id === style._id) {
someStyle._isUswLinked = true;
someStyle.originalValue = style.sourceCode;
someStyle.tmpSourceCode = style.sourceCode;
let metadata = {};
try {
const {metadata: tmpMetadata} = await API.worker.parseUsercssMeta(style.sourceCode);
@ -389,7 +389,7 @@ const styleMan = (() => {
someStyle.metadata = metadata;
} else {
delete someStyle._isUswLinked;
delete someStyle.originalValue;
delete someStyle.tmpSourceCode;
delete someStyle.metadata;
}
handleSave(await saveStyle(someStyle), null, null, false);
@ -399,7 +399,7 @@ const styleMan = (() => {
};
delete style._isUswLinked;
delete style.originalValue;
delete style.tmpSourceCode;
delete style.metadata;
for (const [k, v] of Object.entries(await retrieveStyleInformation(style._usw.token))) {
style._usw[k] = v;