Fix: promise indent
This commit is contained in:
parent
92b01e19e8
commit
e0bd991482
|
@ -71,11 +71,9 @@ function initUsercssInstall() {
|
||||||
port.onMessage.addListener(msg => {
|
port.onMessage.addListener(msg => {
|
||||||
switch (msg.method) {
|
switch (msg.method) {
|
||||||
case 'getSourceCode':
|
case 'getSourceCode':
|
||||||
pendingSource.then(sourceCode =>
|
pendingSource
|
||||||
port.postMessage({method: msg.method + 'Response', sourceCode})
|
.then(sourceCode => port.postMessage({method: msg.method + 'Response', sourceCode}))
|
||||||
).catch(err =>
|
.catch(err => port.postMessage({method: msg.method + 'Response', error: err.message || String(err)}));
|
||||||
port.postMessage({method: msg.method + 'Response', error: err.message || String(err)})
|
|
||||||
);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'liveReloadStart':
|
case 'liveReloadStart':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user