More specific name
This commit is contained in:
parent
58fc531515
commit
e8e18abe58
|
@ -378,7 +378,7 @@ const styleMan = (() => {
|
||||||
for (const {style: someStyle} of dataMap.values()) {
|
for (const {style: someStyle} of dataMap.values()) {
|
||||||
if (someStyle._id === style._id) {
|
if (someStyle._id === style._id) {
|
||||||
someStyle._isUswLinked = true;
|
someStyle._isUswLinked = true;
|
||||||
someStyle.originalValue = style.sourceCode;
|
someStyle.tmpSourceCode = style.sourceCode;
|
||||||
let metadata = {};
|
let metadata = {};
|
||||||
try {
|
try {
|
||||||
const {metadata: tmpMetadata} = await API.worker.parseUsercssMeta(style.sourceCode);
|
const {metadata: tmpMetadata} = await API.worker.parseUsercssMeta(style.sourceCode);
|
||||||
|
@ -389,7 +389,7 @@ const styleMan = (() => {
|
||||||
someStyle.metadata = metadata;
|
someStyle.metadata = metadata;
|
||||||
} else {
|
} else {
|
||||||
delete someStyle._isUswLinked;
|
delete someStyle._isUswLinked;
|
||||||
delete someStyle.originalValue;
|
delete someStyle.tmpSourceCode;
|
||||||
delete someStyle.metadata;
|
delete someStyle.metadata;
|
||||||
}
|
}
|
||||||
handleSave(await saveStyle(someStyle), null, null, false);
|
handleSave(await saveStyle(someStyle), null, null, false);
|
||||||
|
@ -399,7 +399,7 @@ const styleMan = (() => {
|
||||||
};
|
};
|
||||||
|
|
||||||
delete style._isUswLinked;
|
delete style._isUswLinked;
|
||||||
delete style.originalValue;
|
delete style.tmpSourceCode;
|
||||||
delete style.metadata;
|
delete style.metadata;
|
||||||
for (const [k, v] of Object.entries(await retrieveStyleInformation(style._usw.token))) {
|
for (const [k, v] of Object.entries(await retrieveStyleInformation(style._usw.token))) {
|
||||||
style._usw[k] = v;
|
style._usw[k] = v;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user