mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-17 22:21:26 +01:00
Switch to proper log plugin
This commit is contained in:
1 parent
5a5a443ff9
commit
fb847ac1f0
5 files changed
+57
-69
No files matched your search
+2
-2
@@ -3,7 +3,7 @@ import { type } from '@tauri-apps/plugin-os';
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { pdfjs } from 'react-pdf';
|
||||
import { attachConsole } from 'tauri-plugin-log-api';
|
||||
import { attachConsole } from '@tauri-apps/plugin-log';
|
||||
import { App } from './components/App';
|
||||
import './main.css';
|
||||
|
||||
@@ -13,7 +13,7 @@ pdfjs.GlobalWorkerOptions.workerSrc = new URL(
|
||||
).toString();
|
||||
|
||||
// Hide decorations here because it doesn't work in Rust for some reason (bug?)
|
||||
const osType = await type();
|
||||
const osType = type();
|
||||
if (osType !== 'macos') {
|
||||
await getCurrentWebviewWindow().setDecorations(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user