chore: format with prettier

pull/270/head
dessant 4 years ago
parent 15ae99ea13
commit 1f3588fa93

@ -95,7 +95,9 @@ async function fonts(done) {
});
await new Promise(resolve => {
src('node_modules/fontsource-roboto/files/roboto-latin-@(400|500|700)-normal.woff2')
src(
'node_modules/fontsource-roboto/files/roboto-latin-@(400|500|700)-normal.woff2'
)
.pipe(dest(path.join(distDir, 'src/fonts/files')))
.on('error', done)
.on('finish', resolve);

@ -1,7 +1,7 @@
function initReset(challengeUrl) {
const script = document.createElement('script');
script.onload = function(e) {
e.target.remove();
script.onload = function (ev) {
ev.target.remove();
document.dispatchEvent(
new CustomEvent('___resetCaptcha', {detail: challengeUrl})
);

@ -12,11 +12,11 @@
}
};
const onMessage = function(e) {
e.stopImmediatePropagation();
const onMessage = function (ev) {
ev.stopImmediatePropagation();
window.clearTimeout(timeoutId);
reset(e.detail);
reset(ev.detail);
};
const timeoutId = window.setTimeout(function () {

@ -2,7 +2,7 @@ import Vue from 'vue';
import App from './App';
var vm = new Vue({
new Vue({
el: '#app',
render: h => h(App)
});

@ -306,7 +306,7 @@ export default {
try {
await pingClientApp();
this.clientAppInstalled = true;
} catch (e) {
} catch (err) {
if (!this.installGuideUrl) {
this.installGuideUrl =
'https://github.com/dessant/buster/wiki/Installing-the-client-app';

@ -6,9 +6,9 @@ async function init() {
try {
await document.fonts.load('400 14px Roboto');
await document.fonts.load('500 14px Roboto');
} catch (e) {}
} catch (err) {}
const vm = new Vue({
new Vue({
el: '#app',
render: h => h(App)
});

@ -6,9 +6,9 @@ async function init() {
try {
await document.fonts.load('400 14px Roboto');
await document.fonts.load('500 14px Roboto');
} catch (e) {}
} catch (err) {}
const vm = new Vue({
new Vue({
el: '#app',
render: h => h(App)
});

@ -45,7 +45,7 @@ async function getBrowser() {
let name, version;
try {
({name, version} = await browser.runtime.getBrowserInfo());
} catch (e) {}
} catch (err) {}
if (!name) {
({name, version} = Bowser.getParser(
@ -130,7 +130,7 @@ async function scriptsAllowed(tabId, frameId = 0) {
code: 'true;'
});
return true;
} catch (e) {}
} catch (err) {}
}
async function functionInContext(

Loading…
Cancel
Save