diff --git a/src/analytics.js b/src/analytics.js index a0d2e04..9cf2a31 100644 --- a/src/analytics.js +++ b/src/analytics.js @@ -19,12 +19,16 @@ export function withErrorLog(method, args) { } function encodeParams(params) { - return Object.keys(params).map(key => `${key}=${encodeURIComponent(JSON.stringify(params[key]))}`).join('&') + return Object.keys(params) + .map(key => `${key}=${encodeURIComponent(JSON.stringify(params[key]))}`) + .join('&') } function reportError(error) { - return fetch(`${LOG_ENDPOINT}?${encodeParams({ - error: error && error.message || error, - path: window.location.href, - })}`) + return fetch( + `${LOG_ENDPOINT}?${encodeParams({ + error: (error && error.message) || error, + path: window.location.href, + })}` + ) } diff --git a/src/content.less b/src/content.less index 5520364..77b6a6e 100644 --- a/src/content.less +++ b/src/content.less @@ -310,7 +310,8 @@ &-title { border-top: 1px solid #eaecef; padding: 6px 10px; - box-shadow: 0 1px 8px 0 rgba(0,0,0,.2), 0 3px 4px 0 rgba(0,0,0,.14), 0 3px 3px -2px rgba(0,0,0,.12); + box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14), + 0 3px 3px -2px rgba(0, 0, 0, 0.12); z-index: 1; } &-content { @@ -318,7 +319,7 @@ flex: 1; overflow: auto; position: relative; - + .shadow-shelter { position: absolute; width: 100%; @@ -396,7 +397,8 @@ @keyframes rotate { from { transform: rotateZ(0); - } to { + } + to { transform: rotateZ(360deg); } }