Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[ensu] fix web and desktop lint regressions

Prateek Sunal9166fd76d599
diff --git a/.github/workflows/ensu-desktop-lint.yml b/.github/workflows/ensu-desktop-lint.yml
index c7a29493b2..840919f568 100644
--- a/.github/workflows/ensu-desktop-lint.yml
+++ b/.github/workflows/ensu-desktop-lint.yml
@@ -22,7 +22,7 @@ env:
jobs:
lint:
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-24.04
defaults:
run:
working-directory: rust/apps/ensu/src-tauri
@@ -42,15 +42,14 @@ jobs:
- name: Install system dependencies
run: |
sudo apt-get update
- sudo apt-get install -y libwebkit2gtk-4.0-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
+ sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Fetch Rust dependencies
run: cargo fetch
- name: Patch llama.cpp mtmd sources
shell: bash
- working-directory: .
- run: rust/ensu/inference/tool/patch_llama_mtmd.sh
+ run: ../../../ensu/inference/tool/patch_llama_mtmd.sh
- name: Ensure Tauri distDir exists for macro checks
run: mkdir -p ../../../../web/apps/ensu/out
diff --git a/web/apps/ensu/src/components/chat/ChatDialogs.tsx b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
index 785d5db0e1..63f7e53565 100644
--- a/web/apps/ensu/src/components/chat/ChatDialogs.tsx
+++ b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
@@ -173,8 +173,7 @@ export const ChatDialogs = memo(
const openExternalUrl = async (url: string) => {
const hasTauriBridge =
typeof window !== "undefined" &&
- (Boolean((window as any).__TAURI__) ||
- Boolean((window as any).__TAURI_IPC__));
+ ("__TAURI__" in window || "__TAURI_IPC__" in window);
if (isTauriRuntime || hasTauriBridge) {
try {