Skip to content

Commit

Permalink
🐛 修复android无法载入程序的问题 (fix #271)
Browse files Browse the repository at this point in the history
  • Loading branch information
zty012 authored Jan 24, 2025
1 parent 86cd856 commit 69f205f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import "./polyfills/roundRect";
import { Dialog } from "./utils/dialog";
import { exists } from "./utils/fs";
import { exit, openDevtools, writeStderr, writeStdout } from "./utils/otherApi";
import { getCurrentWindow, isDesktop, isMobile, isWeb } from "./utils/platform";
import { getCurrentWindow, isDesktop, isWeb } from "./utils/platform";
import { Popup } from "./utils/popup";
import { InputElement } from "./core/render/domElement/inputElement";

Expand All @@ -50,7 +50,7 @@ const el = document.getElementById("root")!;
// 在这里看着清爽一些,像一个列表清单一样。也方便调整顺序

(async () => {
const matches = !isWeb && !isMobile ? await getMatches() : null;
const matches = !isWeb && isDesktop ? await getMatches() : null;
const isCliMode = isDesktop && matches?.args.output?.occurrences === 1;
await Promise.all([
Settings.init(),
Expand Down

0 comments on commit 69f205f

Please sign in to comment.