Typos adios magios and bonjour gutentag
This commit is contained in:
parent
bea5c7c7d8
commit
703c5a4983
|
@ -378,7 +378,7 @@ const styleMan = (() => {
|
|||
for (const {style: someStyle} of dataMap.values()) {
|
||||
if (someStyle._id === style._id) {
|
||||
someStyle._isUswLinked = true;
|
||||
someStyle.originialValue = style.sourceCode;
|
||||
someStyle.originalValue = 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.originialValue;
|
||||
delete someStyle.originalValue;
|
||||
delete someStyle.metadata;
|
||||
}
|
||||
handleSave(await saveStyle(someStyle), null, null, false);
|
||||
|
@ -399,7 +399,7 @@ const styleMan = (() => {
|
|||
};
|
||||
|
||||
delete style._isUswLinked;
|
||||
delete style.originialValue;
|
||||
delete style.originalValue;
|
||||
delete style.metadata;
|
||||
for (const [k, v] of Object.entries(await retrieveStyleInformation(style._usw.token))) {
|
||||
style._usw[k] = v;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
if (location.pathname === '/api/oauth/style/new') {
|
||||
API.styles.find({_isUswLinked: true}).then(style => {
|
||||
style.sourceCode = style.originialValue;
|
||||
style.sourceCode = style.originalValue;
|
||||
sendPostMessage({type: 'usw-fill-new-style', data: style});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user