Skip to content

Commit c2b8ae8

Browse files
committed
Fix a few tiny bits of formatting
1 parent e2c8e7c commit c2b8ae8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const createWindow = () => {
7272

7373
mainWindow.loadURL(APP_URL);
7474

75-
mainWindow.on('ready-to-show', function() {
75+
mainWindow.on('ready-to-show', function () {
7676
mainWindow!.show();
7777
mainWindow!.focus();
7878
});
@@ -147,20 +147,20 @@ app.on('web-contents-created', (_event, contents) => {
147147

148148
// Redirect all navigations & new windows to the system browser
149149
contents.on('will-navigate', (event, navigationUrl) => {
150-
const parsedUrl = new URL(navigationUrl);
150+
const parsedUrl = new URL(navigationUrl);
151151

152-
if (parsedUrl.origin !== APP_URL) {
153-
event.preventDefault();
154-
shell.openExternal(navigationUrl);
155-
}
152+
if (parsedUrl.origin !== APP_URL) {
153+
event.preventDefault();
154+
shell.openExternal(navigationUrl);
155+
}
156156
});
157157

158158
contents.on('new-window', (event, navigationUrl) => {
159159
const parsedUrl = new URL(navigationUrl);
160160

161161
if (parsedUrl.origin !== APP_URL) {
162-
event.preventDefault();
163-
shell.openExternal(navigationUrl);
162+
event.preventDefault();
163+
shell.openExternal(navigationUrl);
164164
}
165165
});
166166
});
@@ -186,13 +186,13 @@ async function startServer(retries = 2) {
186186
server.stderr.pipe(process.stderr);
187187

188188
server.stdout.on('data', (data) => {
189-
Sentry.addBreadcrumb({ category: 'server-stdout', message: data.toString('utf8'), level: <any> 'info' });
189+
Sentry.addBreadcrumb({ category: 'server-stdout', message: data.toString('utf8'), level: <any>'info' });
190190
});
191191

192192
let lastError: string | undefined = undefined;
193193
server.stderr.on('data', (data) => {
194194
const errorOutput = data.toString('utf8');
195-
Sentry.addBreadcrumb({ category: 'server-stderr', message: errorOutput, level: <any> 'warning' });
195+
Sentry.addBreadcrumb({ category: 'server-stderr', message: errorOutput, level: <any>'warning' });
196196

197197
// Remember the last '*Error:' line we saw.
198198
lastError = errorOutput
@@ -222,7 +222,7 @@ async function startServer(retries = 2) {
222222
error = new Error(`Server shutdown unexpectedly with code ${errorOrCode}`);
223223
}
224224

225-
Sentry.addBreadcrumb({ category: 'server-exit', message: error.message, level: <any> 'error', data: { serverRunTime } });
225+
Sentry.addBreadcrumb({ category: 'server-exit', message: error.message, level: <any>'error', data: { serverRunTime } });
226226
reportError(error);
227227

228228
showNotification(

0 commit comments

Comments
 (0)