mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-19 14:14:05 +00:00
Logging
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
import './reset.css';
|
||||
import './style.css';
|
||||
import App from './app.svelte';
|
||||
import { LogError } from '../wailsjs/runtime/runtime';
|
||||
|
||||
window.addEventListener('unhandledrejection', event => {
|
||||
LogError('Unhandled Rejection in JS! Reason:');
|
||||
LogError(String(event.reason));
|
||||
});
|
||||
|
||||
const app = new App({ target: document.getElementById('app') });
|
||||
|
||||
|
@ -8,6 +8,7 @@ export namespace app {
|
||||
hasMongoDump: boolean;
|
||||
homeDirectory: string;
|
||||
dataDirectory: string;
|
||||
logDirectory: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new EnvironmentInfo(source);
|
||||
@ -22,6 +23,7 @@ export namespace app {
|
||||
this.hasMongoDump = source["hasMongoDump"];
|
||||
this.homeDirectory = source["homeDirectory"];
|
||||
this.dataDirectory = source["dataDirectory"];
|
||||
this.logDirectory = source["logDirectory"];
|
||||
}
|
||||
}
|
||||
export class Settings {
|
||||
|
Reference in New Issue
Block a user