Skip to content

Commit

Permalink
Fixed socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Aug 31, 2024
1 parent 139bae2 commit a8fcd85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub fn zoom_window(window: tauri::Window, scale_factor: f64) {
});
}

#[tauri::command]
pub fn open_settings(window: WebviewWindow, update: bool) {
let app = window.app_handle();
let settings_windows = app.get_webview_window(SETTINGS_WINDOW_NAME);
Expand Down
2 changes: 2 additions & 0 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import { useUpdate } from "./hooks/use-update";
import { useAppStore } from "./store";
import { Toaster } from "./components/ui/toaster";
import { useEffect } from "react";
import { useSocket } from "./rpc/manager";

function App() {
useDisableWebFeatures();
useSocket();

useEffect(() => {
const styleForLog = "font-size: 20px; color: #00dffd";
Expand Down

0 comments on commit a8fcd85

Please sign in to comment.