mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
feat: add sidebar toggle functionality
Signed-off-by: Elysia <a.elysia@proton.me>
This commit is contained in:
@@ -63,17 +63,17 @@ let win: BrowserWindow | null = null;
|
||||
const preload = path.join(__dirname, "../preload/index.mjs");
|
||||
const indexHtml = path.join(RENDERER_DIST, "index.html");
|
||||
|
||||
// Use app.getVersion() when the app is packaged.
|
||||
// Use app.getVersion() when the app is packaged.
|
||||
const getUserAgent = (): string => {
|
||||
const version = app && app.isPackaged
|
||||
? app.getVersion()
|
||||
: process.env.npm_package_version || "dev";
|
||||
const version =
|
||||
app && app.isPackaged
|
||||
? app.getVersion()
|
||||
: process.env.npm_package_version || "dev";
|
||||
return `APM-Store/${version}`;
|
||||
};
|
||||
|
||||
logger.info("User Agent: " + getUserAgent());
|
||||
|
||||
|
||||
async function createWindow() {
|
||||
win = new BrowserWindow({
|
||||
title: "APM AppStore",
|
||||
|
||||
Reference in New Issue
Block a user