Skip to content

Commit

Permalink
refactor: comment out the deprecated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hal-shu-sato committed Feb 11, 2024
1 parent 63a7fae commit acc9ba8
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/renderer/main/preload.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import ClipboardJS from 'clipboard/src/clipboard';
import log from 'electron-log';
import Store from 'electron-store';
import 'source-map-support/register';
import {
app,
checkUpdate,
isExeVersion,
openAboutWindow,
openDialog,
} from '../../lib/ipcWrapper';
import * as modList from '../../lib/modList';
import migration2to3 from '../../migration/migration2to3';
Expand All @@ -16,17 +14,17 @@ import packageMain from './package';
import setting from './setting';
const store = new Store();

log.catchErrors({
onError: async () => {
await openDialog(
'エラー',
`予期しないエラーが発生しました。\nログファイル: ${
log.transports.file.getFile().path
}`,
'error',
);
},
});
// log.errorHandler({
// onError: async () => {
// await openDialog(
// 'エラー',
// `予期しないエラーが発生しました。\nログファイル: ${
// log.transports.file.getFile().path
// }`,
// 'error',
// );
// },
// });

window.addEventListener('DOMContentLoaded', async () => {
// dark-theme
Expand Down

0 comments on commit acc9ba8

Please sign in to comment.