Skip to content

Commit

Permalink
优化:逻辑判空
Browse files Browse the repository at this point in the history
  • Loading branch information
modstart committed Dec 22, 2024
1 parent 26112aa commit de7d7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electron/mapi/manager/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const ManagerPlugin = {
preload = null
}
// main && mainFastPanel
let main = plugin.main;
let mainFastPanel = plugin.mainFastPanel;
let main = plugin.main || null;
let mainFastPanel = plugin.mainFastPanel || null;
if (!mainFastPanel) {
mainFastPanel = main
}
Expand Down

0 comments on commit de7d7a8

Please sign in to comment.